Practice30Create account

A number-arrangement machine rearranges a line of six numbers. In each step it takes the smallest number not yet moved and shifts it to the extreme left end, the other numbers keeping their relative order; it continues until the numbers are in descending order. Input: 45 12 78 34 09 56. What is the final arrangement produced by the machine?

Competition practiceInput-Output
  • A78 56 45 34 12 09
  • B78 56 45 34 09 12
  • C09 12 34 45 56 78
  • D56 45 34 12 09 78

Step-by-Step Solution

The machine stops when the numbers are in descending order, which for this input is 78 56 45 34 12 09.
Answer: A) 78 56 45 34 12 09

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 in steps: in each step it…A number-arranging machine rearranges an input line of numbers in steps: in each step it…A number-arranging machine rearranges an input line of numbers in steps: in each step it…A word-and-number arranging machine, given an input line, rearranges it in steps. Rule:…A word-and-number arranging machine, given an input line, rearranges it in steps. Rule:…