Practice30Create account

A machine rearranges numbers; in each step the smallest number not yet fixed moves to the leftmost unfixed position and the largest number not yet fixed moves to the rightmost unfixed position simultaneously, both becoming fixed. Input: 36 14 52 27 43 9. Step I: 9 36 14 27 43 52. Step II: 9 14 36 27 43 52. What is Step III?

Competition practiceInput-Output
  • A9 14 36 27 43 52
  • B9 14 27 43 36 52
  • C9 14 27 36 43 52
  • D9 27 14 36 43 52

Step-by-Step Solution

After two steps 9, 14 (left) and 43, 52 (right) are fixed. The remaining numbers are 36 and 27; the smaller 27 goes to the next left slot and the larger 36 to the next right slot, giving 9 14 27 36 43 52.
Answer: C) 9 14 27 36 43 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 machine shifts a line of numbers; in each step the number at the left end moves to the…A word-rearranging machine moves one word per step: in each step the next word in…A number-arranging machine moves one number per step: in each step the smallest number…A number-arranging machine moves one number per step: in each step the largest number…A word-rearranging machine moves one word per step: in each step the word that comes…