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. For the input 8 3 7 2 5, what is Step I?

Competition practiceInput-Output
  • A2 3 8 7 5
  • B2 8 3 7 5
  • C2 3 5 7 8
  • D8 3 7 2 5

Step-by-Step Solution

The smallest number 2 moves to the leftmost position while 8, 3, 7, 5 retain their relative order: 2 8 3 7 5.
Answer: B) 2 8 3 7 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 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…A word arrangement machine, when given an input line of words and numbers, rearranges…A word arrangement machine, when given an input line of words and numbers, rearranges…