Practice30Create account

A number-arrangement machine, in each step, shifts the largest not-yet-placed number to the rightmost free position (the numbers after it move one place left). For Input: '45 60 23 78 12', Step I is: '45 60 23 12 78'. What is Step II?

Competition practiceInput-Output
  • A45 23 12 60 78
  • B45 60 23 12 78
  • C45 12 23 60 78
  • D45 23 60 12 78

Step-by-Step Solution

After 78 is placed at the right end, the next largest is 60; moving it to the fourth position gives '45 23 12 60 78'.
Answer: A) 45 23 12 60 78

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, given an input line, rearranges it step by step: in each…A number-arrangement machine, given an input line, rearranges it step by step: in each…A number-arranging machine rearranges an input line of numbers so that, in each step,…A number-arranging machine rearranges an input line of numbers so that, in each step,…A number-arranging machine rearranges an input line of numbers so that, in each step,…