Practice30Create account

A number arrangement machine rearranges a line of numbers by a fixed rule. In each step it moves the smallest number that is not yet placed to the leftmost unfixed position; the numbers already placed at the left stay fixed and the rest keep their relative order. It stops when the numbers are in ascending order. Input: 6 2 9 1 5. Step I: 1 6 2 9 5. What is Step II?

Competition practiceInput-Output
  • A1 2 6 5 9
  • B1 2 6 9 5
  • C1 2 5 6 9
  • D1 6 2 9 5

Step-by-Step Solution

After 1 is fixed, the smallest of the rest (2) moves to the second position while 6, 9, 5 keep their order: 1 2 6 9 5.
Answer: B) 1 2 6 9 5

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 arrangement machine rearranges a line of numbers by a fixed rule. In each step…A number arrangement machine rearranges a line of numbers by a fixed rule. In each step…A number-arrangement machine rearranges an input line in steps. In each step it moves…A number-arrangement machine rearranges an input line in steps. In each step it moves…A word arrangement machine, when given an input line of words and numbers, rearranges…