Question LR-IO-0032
EasyA 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 left end of the unarranged part (just after the numbers already arranged).
Input: 38 74 12 90 45
What is the final arrangement?
- A.
90 74 45 38 12
- B.
12 38 45 74 90
- C.
Sign up free to see the answer and a step-by-step explanation.