Practice30Create account

A number-arrangement machine, given an input line, rearranges it step by step: in each step it moves the largest remaining number to the right end while the other numbers keep their relative order. Input: 52 18 61 43 25. How many steps are needed to arrange all the numbers in ascending order?

Competition practiceInput-Output
  • ATwo
  • BThree
  • CFour
  • DFive

Step-by-Step Solution

Step I: 52 18 43 25 61; Step II: 18 43 25 52 61; Step III: 18 25 43 52 61 (ascending). Three steps are needed.
Answer: B) Three

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 so that, in each step,…A number-arranging machine rearranges an input line of numbers so that, in each step,…A number-arranging machine rearranges an input line of numbers so that, in each step,…A word-arrangement machine, when given a line of words, rearranges them step by step. In…A word-arrangement machine, when given a line of words, rearranges them step by step. In…