Practice30Create account

A number-arranging machine, in each step, moves the largest of the numbers not yet arranged to the left end, placing it just to the right of the numbers already arranged; the rest keep their relative order. Input: 45 23 78 12 66 34. What is the arrangement after Step 2?

Competition practiceInput-Output
  • A78 66 12 23 45 34
  • B66 78 45 23 12 34
  • C78 66 45 23 34 12
  • D78 66 45 23 12 34

Step-by-Step Solution

Step 1 moves 78 to the front: 78 45 23 12 66 34. Step 2 moves 66 next: 78 66 45 23 12 34.
Answer: D) 78 66 45 23 12 34

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, in each step, moves the word that comes first in alphabetical…A machine, in each step, moves the smallest number to the far right end, shifting the…A machine, in each step, moves the largest number to the far right end, shifting the…A word-and-number arranging machine rearranges an input line one step at a time. In each…A word-and-number arranging machine rearranges an input line one step at a time. In each…