Question LR-IO-0035
EasyA number-arrangement machine rearranges a line of numbers step by step. In each step it takes the largest number not yet arranged and moves it to the right end of the unarranged part (just before the numbers already arranged).
Input: 72 18 54 96 31
What is Step 1?
- A.
18 31 54 72 96
- B.
18 54 31 72 96
- C.
Sign up free to see the answer and a step-by-step explanation.