Question LR-IO-0016
HardA 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: hope 73 fern 28 dusk 91 cove 45
What is the last step?
- A.
cove 28 dusk 45 fern hope 73 91
- B.
cove 28 dusk 45 fern 73 hope 91
- C.
Sign up free to see the answer and a step-by-step explanation.