Question 11
EasyA word-arrangement machine rearranges a line of words step by step. In each step it takes the word that comes last in dictionary order among the words not yet arranged and moves it to the right end of the unarranged part (just before the words already arranged).
Input: silk band trap moon coal
What is Step 1?
- A.
silk band trap moon coal
- B.
silk band moon coal trap
- C.
band coal moon silk trap
- D.
band moon coal silk trap
Sign up free to see the answer and a step-by-step explanation.