Question LR-IO-0001
EasyA 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: gate ace hum bed fox
What is Step 1?
- A.
gate ace hum bed fox
- B.
ace gate hum bed fox
- C.
Show answer and explanation
Answer: B
Working step by step:
Step 1: ace gate hum bed fox