LearnFrenzy
Sign in Take a free test

Input-Output · Discussion forum

Hard Level Question 20 – answer, explanation & discussion

  • 0 comments
  • Answer explained
  • Moderated community
Question 20 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: sun ship owl 47 91 coin 61 36
Step I: 91 sun ship owl 47 coin 61 36
Step II: 91 61 sun ship owl 47 coin 36
Step III: 91 61 47 sun ship owl coin 36
Step IV: 91 61 47 36 sun ship owl coin

Following the same rule, the machine is given this input: house 81 79 ink rain drum 21 34

Which of the following is Step I?

  • A 81 house 79 ink rain drum 21 34 Correct
  • B 81 79 house ink rain drum 21 34
  • C 34 21 drum rain ink 79 house 81
  • D house 81 79 ink rain drum 21 34
Correct Answer: Option A

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: 81 house 79 ink rain drum 21 34; Step II: 81 79 house ink rain drum 21 34; Step III: 81 79 34 house ink rain drum 21; Step IV: 81 79 34 21 house ink rain drum.

Answer: 81 house 79 ink rain drum 21 34

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