Practice30Create account

A number-arrangement machine rearranges an input line in steps. In each step it moves the largest number that is not yet in its final position to the rightmost available place, shifting the others left; this repeats until the whole line is in ascending order. Input: 15 47 23 08 39 12. Step I: 15 23 08 39 12 47. Step II: 15 23 08 12 39 47. How many steps are needed to complete the arrangement?

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

Step-by-Step Solution

Step III: 15 08 12 23 39 47; Step IV: 08 12 15 23 39 47 (fully ascending). The arrangement completes in four steps.
Answer: C) Four

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 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…A word-and-number arrangement machine rearranges an input line one step at a time.…