LearnFrenzy
Sign in Take a free test

Input-Output · Discussion forum

Hard Level Question 53 – answer, explanation & discussion

  • 0 comments
  • Answer explained
  • Moderated community
Question 53 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: 74 tree queen 50 yarn 13 rose 73
Step I: 74 tree 50 yarn 13 rose 73 queen
Step II: 74 tree 50 yarn 13 73 rose queen
Step III: 74 50 yarn 13 73 tree rose queen
Step IV: 74 50 13 73 yarn tree rose queen

Following the same rule, the machine is given this input: house 22 jug oak zebra 62 36 91

What is the final arrangement (the last step)?

  • A house jug oak zebra 91 36 62 22
  • B 22 62 36 91 zebra oak jug house Correct
  • C house 22 jug oak zebra 62 36 91
  • D 62 36 91 zebra oak jug house 22
Correct Answer: Option B

Rule (from the illustration): In each step the word that comes first in the dictionary, of those not yet arranged, moves to the right end, before the words already arranged; numbers keep their order.

For the new input: Step I: 22 jug oak zebra 62 36 91 house; Step II: 22 oak zebra 62 36 91 jug house; Step III: 22 zebra 62 36 91 oak jug house; Step IV: 22 62 36 91 zebra oak jug house.

Answer: 22 62 36 91 zebra oak jug house

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