Practice30Create account

A machine moves the largest remaining number to the left end in each step. Example — Input: 23 56 11 40; Step 1: 56 23 11 40; Step 2: 56 40 23 11. For the input '18 72 35 64 29', what is Step 2?

Competition practiceInput-Output
  • A64 72 18 35 29
  • B72 64 18 35 29
  • C72 64 35 18 29
  • D72 18 35 64 29

Step-by-Step Solution

Step 1 moves the largest (72) to the front: 72 18 35 64 29. Step 2 moves the next largest (64) to the front of the unsorted part: 72 64 18 35 29.
Answer: B) 72 64 18 35 29

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 moves the shortest remaining word (fewest letters) to the left end in each…A machine moves the smallest remaining number to the left end in each step. Example —…A machine moves the reverse-alphabetically first remaining word (nearest to Z) to the…A number-arrangement machine rearranges an input in steps by moving the largest…A number-arrangement machine rearranges an input in steps by moving the smallest…