Question LR-IO-0022
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: tide glow arch pond fern
What is Step 2?
- A.
arch fern tide glow pond
- B.
arch tide glow pond fern
- C.
Show answer and explanation
Answer: A
Working step by step:
Step 1: arch tide glow pond fern
Step 2: arch fern tide glow pond
Step 3: arch fern glow tide pond
Step 4: arch fern glow pond tide