Question LR-IO-0021
EasyA 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: mint cake rope dusk bell
What is Step 1?
- A.
bell cake dusk mint rope
- B.
mint cake rope dusk bell
- C.
Show answer and explanation
Answer: D
Working step by step:
Step 1: bell mint cake rope dusk
Step 2: bell cake mint rope dusk
Step 3: bell cake dusk mint rope