Question LR-IO-0063
HardA word-arrangement machine rearranges a line of words step by step. In each step it takes the word that comes first in dictionary order among the words not yet arranged and moves it to the left end of the unarranged part (just after the words already arranged).
Input: zinc cobalt tin lead gold iron nickel
How many steps does the machine need to complete the arrangement?
- A.
7
- B.
6
- C.
Sign up free to see the answer and a step-by-step explanation.