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 | 65 54 apple lion yarn 33 95 |
| Step I | apple 95 65 54 lion yarn 33 |
| Step II | apple 95 lion 65 54 yarn 33 |
| Step III | apple 95 lion 65 yarn 54 33 |
Following the same rule, the machine is given this input: 29 33 20 desk 55 bell moon
In Step I, which element is 3rd from the right end?
- A bell
- B 20 Correct
- C 29
- D desk
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: bell 55 29 33 20 desk moon; Step II: bell 55 desk 33 29 20 moon; Step III: bell 55 desk 33 moon 29 20.
Answer: 20
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!