Question LR-IO-0066
HardA word-arrangement machine rearranges a line of words step by step. In each step it takes the word that comes last in dictionary order among the words not yet arranged and moves it to the right end of the unarranged part (just before the words already arranged).
Input: acorn walnut peanut almond hazel pecan cashew
In Step 3, which item is 2nd from the right end?
- A.
hazel
- B.
pecan
- C.
Sign up free to see the answer and a step-by-step explanation.