Practice30Create account

A number-arranging machine rearranges an input line one step at a time. Example — Input: '15 42 8 27 33'; Step I: '42 15 8 27 33'; Step II: '42 33 15 8 27'. (Each step moves the next largest number into the next position from the left.) For the Input '19 56 24 71 38', what is Step II?

Competition practiceInput-Output
  • A56 71 19 24 38
  • B71 56 19 24 38
  • C71 56 38 24 19
  • D71 19 56 24 38

Step-by-Step Solution

Step I moves the largest number 71 to the front (71 19 56 24 38); Step II moves the next largest 56 to the second position: 71 56 19 24 38.
Answer: B) 71 56 19 24 38

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 word-and-number arranging machine, given an input line, produces a final arrangement…A word-and-number arranging machine, given an input line, produces a final arrangement…A word-and-number arranging machine, given an input line, produces a final arrangement…A word-and-number arranging machine, given an input line, produces a final arrangement…