Practice30Create account

A number-arranging machine rearranges an input line of numbers using one rule at each step: the next-lowest number is moved into its final sorted position from the left, and the remaining numbers shift one place to the right keeping their order. Example — Input: 35 16 42 8 23 19; Step I: 8 35 16 42 23 19; Step II: 8 16 35 42 23 19; Step III: 8 16 19 35 42 23; Step IV: 8 16 19 23 35 42 (last step). For the Input: 27 14 39 6 52 18, what will Step II be?

Competition practiceInput-Output
  • A6 14 39 27 52 18
  • B6 14 27 39 52 18
  • C6 14 18 27 39 52
  • D6 27 14 39 52 18

Step-by-Step Solution

Step I places the lowest number 6 at the front: 6 27 14 39 52 18. Step II places the next-lowest 14 in the second position: 6 14 27 39 52 18.
Answer: B) 6 14 27 39 52 18

Master this topic in 30 minutes a day.

Don't just memorise the answer — build a daily practice habit.

Practice 5 Similar Questions Free →

All Input-Output practice questions

More Input-Output practice

A number-arranging machine rearranges an input line of numbers using one rule at each…A word-and-number arrangement machine, given an input line, rearranges it in steps. In…A word-and-number arrangement machine, given an input line, rearranges it in steps. In…A word-arrangement machine rearranges an input line of words in steps. Input: 'tree…A rearrangement machine, given an input line, arranges all words in alphabetical order…