Practice30Create account

A number-arranging machine, in each step, moves the largest not-yet-placed number to the leftmost unplaced position. Example — Input: 15 42 8 23 37; Step I: 42 15 8 23 37; Step II: 42 37 15 8 23. For the same input, what is Step III?

Competition practiceInput-Output
  • A37 42 23 15 8
  • B42 37 15 23 8
  • C42 37 23 15 8
  • D42 37 23 8 15

Step-by-Step Solution

After Step II (42 37 15 8 23) the largest among 15, 8, 23 is 23; placing it third gives 42 37 23 15 8.
Answer: C) 42 37 23 15 8

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 one step at a time. Example — Input:…A number-arranging machine rearranges an input line one step at a time. Example — Input:…A number-arranging machine rearranges an input line one step at a time. Example — Input:…A word-arranging machine rearranges an input line one step at a time. Example — Input:…A number-arranging machine rearranges an input line one step at a time. Example — Input:…