Home
Tonight Fun Dictionaries Utils Conversations
RomânăRomână 
 
Day's picture
Propose an image!
 Day's problem
Propose a problem!
 Jokes
Contests
 Games
Cups and championships
 Register
Login
  


Today's Problem


Solve one problem each day

Wednesday, 3 august 2011

to quicksort or not to quicksort

Proposed by catanedelcuOffline
(26 comments)4.964 times displayed

Se dau  literele alfabetului amestecate in felul urmator :

F, W, X, Y, Z, K, L, A, T, U, J, N, O, S, D, E, P, V, C, B, G, H, I, Q, R, M

Dorim sa refacem ordinea alfabetica, respectand regula de mai jos:

Se pot lua una sau mai multe litere (consecutive)  si puse ( pastrand ordinea celor luate) intre alte doua litere  sau  la sfarsitul sirului  sau la inceput.

Care este nr. minim de "mutari"  si care sunt acestea ?

Notati  mutarile in felul urmator , de exemplu :    1. (Z,L,K,A) intre (N,O)  
- asta insemnand ca luam literele  Z,L,K,A  in ordinea in care sunt
si le punem intre N si O si vom avea  N,Z,L,K,A,O.


Top 10 most viewed problems
Top 10 most popular problems
Last ten problems
Search problems by keywords
Top 10 most popular problems:Comments
1.  The trip to Nepal 107
2.  N+5 si N-5 100
3.  Legs... legs... legs... 99
4.  2 clepsidras 97
5.  ... 89
6.  100 celebrities 86
7.  Discover what is hidden in the image 84
8.  Jocuri din liceu. 81
9.  Double windows 76
10.  Faces 75
next 40 »
 august 2011 
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930311234
Answer
Your comment:
Click here to authenticate
Comments (26)
» Propose a Problem
UP
0.2163 / 0.1494 (143)