Question LR-IO-0017
HardA word-arrangement machine rearranges a line of words step by step. In each step it moves the word that comes first in dictionary order, among those not yet arranged, to the left end of the unarranged part (just after the words already arranged).
Input: quay noon lark pact mesh kilt
In Step 4, how many words lie between 'pact' and 'kilt'?
- A.
4
- B.
1
- C.
Sign up free to see the answer and a step-by-step explanation.