Practice30Create account

A machine brings, in each step, the largest not-yet-placed number to the leftmost unarranged position (the rest keep order). Example — Input: 23 51 12 40 → Step I: 51 23 12 40 → Step II: 51 40 23 12. For the input '34 18 57 26 49', what is Step II?

Competition practiceInput-Output
  • A57 49 34 18 26
  • B57 49 34 26 18
  • C57 49 18 26 34
  • D49 57 34 18 26

Step-by-Step Solution

Step I brings 57 to the front: 57 34 18 26 49. Step II brings 49 to the second position: 57 49 34 18 26.
Answer: A) 57 49 34 18 26

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 machine brings, in each step, the word earliest in alphabetical order among the…A machine brings, in each step, the smallest not-yet-placed number to the leftmost…An arrangement machine rearranges an input line of numbers step by step by one fixed…An arrangement machine rearranges an input line of numbers step by step by one fixed…An arrangement machine rearranges an input line of words step by step by one fixed rule.…