Practice30Create account

A number-arranging machine rearranges its input in steps. In each step it moves the smallest remaining number to the left and the largest remaining number to the right of the still-unarranged middle, which keeps its order; it stops when the numbers are fully sorted in ascending order. Input: 47 12 88 35 63 20. What is Step II?

Competition practiceInput-Output
  • A12 20 47 63 35 88
  • B12 20 35 47 63 88
  • C12 20 47 35 63 88
  • D12 47 35 63 20 88

Step-by-Step Solution

Step I gives 12 47 35 63 20 88; then from the middle 47 35 63 20 the smallest 20 goes left and the largest 63 goes right, giving 12 20 47 35 63 88.
Answer: C) 12 20 47 35 63 88

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 its input in steps. In each step it moves the…A number-arrangement machine rearranges a line of numbers so that in each step the…A number-arrangement machine rearranges a line of six numbers. In each step it takes the…A number-arrangement machine rearranges a line of six numbers. In each step it takes the…A number-arrangement machine rearranges a line of six numbers. In each step it takes the…