Question LR-IO-0013
MediumA number-arrangement machine rearranges a line of numbers step by step. In each step it moves the largest number not yet arranged to the left end of the unarranged part (just after the numbers already arranged).
Input: 13 40 72 98 55 87 26
In which step does the line first read '98 87 72 55 13 40 26'?
- A.
Step 2
- B.
Step 3
- C.
Sign up free to see the answer and a step-by-step explanation.