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: nest 13 16 wind 72 goat 51 pot
Step I: 72 nest 13 16 wind goat 51 pot
Step II: 72 51 nest 13 16 wind goat pot
Step III: 72 51 16 nest 13 wind goat pot
Step IV: 72 51 16 13 nest wind goat pot
Following the same rule, the machine is given this input: kite 47 66 vest tree 29 61 ink
Which of the following is Step IV?
- A 66 61 47 kite vest tree 29 ink
- B 61 66 47 29 kite vest tree ink
- C 66 61 47 29 kite vest tree ink Correct
- D kite 47 66 vest tree 29 61 ink
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: 66 kite 47 vest tree 29 61 ink; Step II: 66 61 kite 47 vest tree 29 ink; Step III: 66 61 47 kite vest tree 29 ink; Step IV: 66 61 47 29 kite vest tree ink.
Answer: 66 61 47 29 kite vest tree ink
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!