LearnFrenzy
Sign in Take a free test

Input-Output · Discussion forum

Hard Level Question 60 – answer, explanation & discussion

  • 0 comments
  • Answer explained
  • Moderated community
Question 60 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: tree toy 69 lion 75 82 ink 72
Step I: 69 tree toy lion 75 82 ink 72
Step II: 69 72 tree toy lion 75 82 ink
Step III: 69 72 75 tree toy lion 82 ink
Step IV: 69 72 75 82 tree toy lion ink

Following the same rule, the machine is given this input: umbrella toy 34 jug 69 41 40 flag

In Step I, which element is 4th from the right end?

  • A 69 Correct
  • B flag
  • C jug
  • D toy
Correct Answer: Option A

Rule (from the illustration): In each step the smallest 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: 34 umbrella toy jug 69 41 40 flag; Step II: 34 40 umbrella toy jug 69 41 flag; Step III: 34 40 41 umbrella toy jug 69 flag; Step IV: 34 40 41 69 umbrella toy jug flag.

Answer: 69

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