Practice30Create account

A number-arranging machine, in each step, moves the largest not-yet-placed number to the rightmost unplaced position. Example — Input: 52 18 40 33 27; Step I: 18 40 33 27 52; Step II: 18 33 27 40 52. For the same input, what is Step III?

Competition practiceInput-Output
  • A18 27 33 52 40
  • B18 27 33 40 52
  • C18 33 27 40 52
  • D27 18 33 40 52

Step-by-Step Solution

After Step II (18 33 27 40 52) the largest among 18, 33, 27 is 33; placing it in the third position gives 18 27 33 40 52.
Answer: B) 18 27 33 40 52

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 rearranging machine, in each step, moves the first element of the row to the end.…A rearranging machine, in each step, moves the last element of the row to the front.…A number-arranging machine, in each step, moves the largest not-yet-placed number to the…A word-arranging machine rearranges an input line one step at a time. Example — Input:…