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 | 45 sun 22 23 rain wall 79 |
| Step I | rain 79 45 sun 22 23 wall |
| Step II | rain 79 sun 45 22 23 wall |
| Step III | rain 79 sun 45 wall 23 22 |
Following the same rule, the machine is given this input: 50 oak desk 18 bird 70 49
What is the final arrangement (the last step)?
- A 50 oak desk 18 bird 70 49
- B 70 desk 50 oak 49 18 bird
- C 18 49 oak 50 desk 70 bird
- D bird 70 desk 50 oak 49 18 Correct
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: bird 70 50 oak desk 18 49; Step II: bird 70 desk 50 oak 18 49; Step III: bird 70 desk 50 oak 49 18.
Answer: bird 70 desk 50 oak 49 18
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!