Practice30Create account

A number-arranging machine rearranges an input line of numbers in steps. In each step it moves the largest of the not-yet-arranged numbers to the front, keeping the already-arranged numbers at the left in descending order while the remaining numbers stay in their original order. Input: 34 17 85 46 29 61. What is Step 2 of the output?

Competition practiceInput-Output
  • A85 34 17 46 29 61
  • B85 61 46 34 29 17
  • C61 85 34 17 46 29
  • D85 61 34 17 46 29

Step-by-Step Solution

Step 1 is 85 34 17 46 29 61; then the next largest, 61, moves in behind 85, leaving 85 61 34 17 46 29.
Answer: D) 85 61 34 17 46 29

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 word-arranging machine rearranges an input line of words in steps. In each step it…A word-arranging machine rearranges an input line of words in steps. In each step it…A word-arrangement machine, in each step, shifts the alphabetically-earliest…A number-arrangement machine, in each step, shifts the smallest not-yet-placed number to…A word-arrangement machine, in each step, shifts the alphabetically-earliest…