Example 1: Ascending number arrangement
Last Updated On: Sun Sep 06 2026Given Data
- Input: 42, 18, 35, 27.
- Step I: 18, 42, 35, 27.
- Step II: 18, 27, 42, 35.
Question
What is Step III?
Answer
18, 27, 35, 42.
Solution
- Each step moves the smallest remaining number to the next left position.
- After Step II, 18 and 27 are fixed.
- 35 is the smallest remaining number, so it moves before 42.