Question LR-IO-0058
MediumA number-arrangement machine rearranges a line of numbers step by step. In each step it takes the smallest number not yet arranged and moves it to the right end of the unarranged part (just before the numbers already arranged).
Input: 49 86 13 62 35 78
What is the final arrangement?
- A.
49 86 62 78 35 13
- B.
86 62 78 49 35 13
- C.
Sign up free to see the answer and a step-by-step explanation.