Question LR-IO-0019
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: sand 58 reef 23 palm 76 bay 41
Which element is fifth from the left in Step 6?
- A.
reef
- B.
sand
- C.
Sign up free to see the answer and a step-by-step explanation.