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: sun hill apple 26 60 63
Step I: 63 sun hill apple 26 60
Step II: 63 60 sun hill apple 26
Step III: 63 60 26 sun hill apple
Following the same rule, the machine is given this input: house nest 68 17 33 hill
What is the final arrangement (the last step)?
- A hill nest house 17 33 68
- B house nest 68 17 33 hill
- C 33 17 house nest hill 68
- D 68 33 17 house nest hill Correct
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: 68 house nest 17 33 hill; Step II: 68 33 house nest 17 hill; Step III: 68 33 17 house nest hill.
Answer: 68 33 17 house nest hill
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!