Question LR-IO-0004
EasyA 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: 38 91 12 57 74
What is Step 2?
- A.
91 74 38 12 57
- B.
91 74 12 38 57
- C.
Show answer and explanation
Answer: A
Working step by step:
Step 1: 91 38 12 57 74
Step 2: 91 74 38 12 57