Question LR-IO-0010
MediumA 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: lamp oven gear ache iron vase
What is Step 3?
- A.
ache gear lamp oven iron vase
- B.
gear ache iron lamp oven vase
- C.
Sign up free to see the answer and a step-by-step explanation.