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 | 82 drum owl 35 pot 45 50 apple |
| Step I | apple 82 drum owl 35 pot 45 50 |
| Step II | apple 82 drum 50 owl 35 pot 45 |
| Step III | apple 82 drum 50 owl 45 35 pot |
| Step IV | apple 82 drum 50 owl 45 pot 35 |
Following the same rule, the machine is given this input: 80 86 38 78 jug wall vest drum
In Step IV, which element is 8th from the left end?
- A 86
- B 38 Correct
- C 78
- D 80
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 86 80 38 78 jug wall vest; Step II: drum 86 jug 80 38 78 wall vest; Step III: drum 86 jug 80 vest 78 38 wall; Step IV: drum 86 jug 80 vest 78 wall 38.
Answer: 38
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!