Practice30Create account

A number-arranging machine moves one number per step: in each step the smallest number not yet fixed is shifted into the leftmost free position, while the other numbers keep their relative order. Example - Input: '34 12 56 23'. Step I: '12 34 56 23'. Step II: '12 23 34 56'. For the input '45 18 63 27 39', which line is Step II?

Competition practiceInput-Output
  • A18 45 27 63 39
  • B18 27 45 63 39
  • C18 27 45 39 63
  • D18 27 39 45 63

Step-by-Step Solution

Step I brings the smallest, 18, to the front: '18 45 63 27 39'. Step II brings the next smallest, 27, to the second slot: '18 27 45 63 39'.
Answer: B) 18 27 45 63 39

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-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…A number-arranging machine moves one number per step: in each step the smallest number…A machine handles both words and numbers each step: the word earliest in alphabetical…A machine rearranges words in steps; each step moves the earliest-in-dictionary…