A word and number arrangement machine rearranges an input line step by step, following a rule. Here is an illustration of the input and the steps:
Input: desk bird owl 62 oak 26 57 42
Step I: 62 desk bird owl oak 26 57 42
Step II: 62 57 desk bird owl oak 26 42
Step III: 62 57 42 desk bird owl oak 26
Step IV: 62 57 42 26 desk bird owl oak
Following the same rule, the machine is given this input: moon coin 13 67 pot umbrella 54 46
Which of the following is Step IV?
- A moon coin 13 67 pot umbrella 54 46
- B umbrella pot coin moon 13 46 54 67
- C 67 54 46 13 moon coin pot umbrella Correct
- D 54 67 46 13 moon coin pot umbrella
Rule (from the illustration): In each step the largest number not yet arranged moves to the left end, after the numbers already arranged; the words keep their order.
For the new input: Step I: 67 moon coin 13 pot umbrella 54 46; Step II: 67 54 moon coin 13 pot umbrella 46; Step III: 67 54 46 moon coin 13 pot umbrella; Step IV: 67 54 46 13 moon coin pot umbrella.
Answer: 67 54 46 13 moon coin pot umbrella
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!