Example 9: Checking the relative order
Last Updated On: Sun Sep 06 2026Given Data
- Input: 33, 17, 25, 9.
- Step I: 9, 33, 17, 25.
Question
Which statement about Step I is correct?
Answer
The relative order of 33, 17, and 25 is unchanged.
Solution
- The smallest item, 9, has moved to the first position.
- The other items appear afterward as 33, 17, 25, the same order as in the input.
- This shows a selection-style sorting step rather than a full reorder.