LearnFrenzy
Sign in Take a free test

Input-Output · Discussion forum

Hard Level Question 54 – answer, explanation & discussion

  • 0 comments
  • Answer explained
  • Moderated community
Question 54 Back to Exercise

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: desk bird owl 62 oak 26 57 42
Step I: 62 desk bird owl oak 26 57 42
Step II: 62 57 desk bird owl oak 26 42
Step III: 62 57 42 desk bird owl oak 26
Step IV: 62 57 42 26 desk bird owl oak

Following the same rule, the machine is given this input: moon coin 13 67 pot umbrella 54 46

Which of the following is Step IV?

  • A moon coin 13 67 pot umbrella 54 46
  • B umbrella pot coin moon 13 46 54 67
  • C 67 54 46 13 moon coin pot umbrella Correct
  • D 54 67 46 13 moon coin pot umbrella
Correct Answer: Option C

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: 67 moon coin 13 pot umbrella 54 46; Step II: 67 54 moon coin 13 pot umbrella 46; Step III: 67 54 46 moon coin 13 pot umbrella; Step IV: 67 54 46 13 moon coin pot umbrella.

Answer: 67 54 46 13 moon coin pot umbrella

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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links