Question LR-IO-0060
MediumA 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: 73 26 58 91 44 12
How many steps does the machine need to complete the arrangement?
- A.
5
- B.
7
- C.
Sign up free to see the answer and a step-by-step explanation.