Practice30Create account

A word-and-number arrangement machine rearranges any input line in steps. In each step the smallest number that has not already been shifted in an earlier step is taken out and placed at the extreme left end of the line. All the remaining elements keep their relative order, and the machine stops when no further shift is possible.
Input: pine 48 reed 94 stone 17 twig 61 umbra 29.
In the last step of the above arrangement, which element is second from the left end?

Competition practiceInput-Output
  • A61
  • B48
  • C29
  • D94

Step-by-Step Solution

The machine finishes in 5 steps. Last step (Step 5): 94 61 48 29 17 pine reed stone twig umbra. Counting from the left end, the second element is "61".
Answer: A) 61

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-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…A word-and-number arrangement machine rearranges any input line in steps. In each step…