Question LR-IO-0012
MediumA machine rearranges a line of words and numbers. In odd-numbered steps it moves the word that comes first in dictionary order (among those not yet arranged) to the left end of the unarranged part; in even-numbered steps it does the same with the smallest number not yet arranged.
Input: drum 46 crab 63 bolt 81 aunt
What is Step 4?
- A.
aunt 46 bolt 63 drum crab 81
- B.
aunt 46 bolt drum crab 63 81
- C.
Sign up free to see the answer and a step-by-step explanation.