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: moon 97 91 94 yarn hill 22 umbrella
Step I: 97 moon 91 94 yarn hill 22 umbrella
Step II: 97 94 moon 91 yarn hill 22 umbrella
Step III: 97 94 91 moon yarn hill 22 umbrella
Step IV: 97 94 91 22 moon yarn hill umbrella
Following the same rule, the machine is given this input: bell 98 house flag 43 hill 95 63
Which of the following is Step III?
- A 98 95 63 43 bell house flag hill
- B hill 43 flag house bell 63 95 98
- C 98 95 bell house flag 43 hill 63
- D 98 95 63 bell house flag 43 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: 98 bell house flag 43 hill 95 63; Step II: 98 95 bell house flag 43 hill 63; Step III: 98 95 63 bell house flag 43 hill; Step IV: 98 95 63 43 bell house flag hill.
Answer: 98 95 63 bell house flag 43 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!