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:
| Step | Arrangement |
|---|---|
| Input | 15 10 80 year coin lamp 54 |
| Step I | coin 80 15 10 year lamp 54 |
| Step II | coin 80 lamp 54 15 10 year |
| Step III | coin 80 lamp 54 year 15 10 |
Following the same rule, the machine is given this input: 82 owl drum 23 60 rain 87
Which of the following is Step I?
- A rain 60 23 owl 82 87 drum
- B drum 87 82 owl 23 60 rain Correct
- C 82 owl drum 23 60 rain 87
- D drum 87 owl 82 rain 60 23
Rule (from the illustration): In each step the word that comes first in the dictionary moves to the left end, followed by the largest number, after the pairs already arranged.
For the new input: Step I: drum 87 82 owl 23 60 rain; Step II: drum 87 owl 82 23 60 rain; Step III: drum 87 owl 82 rain 60 23.
Answer: drum 87 82 owl 23 60 rain
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!