Consider the list numlist = [58, 46, 63, 11, -16, 26]. What will be the sequence of elements after pass 3 of Selection sort?
Consider the list numlist = [58, 46, 63, 11, -16, 26]. What will be the sequence of elements after pass 3 of Selection sort?
Solution
✅ Correct Option: 3
Selection sort finds the smallest element in the unsorted part in each pass and swaps it into the next position from the left.
| Pass | Smallest in unsorted part | Swap | List after pass |
|---|---|---|---|
| 1 | -16 | with 58 | [-16, 46, 63, 11, 58, 26] |
| 2 | 11 | with 46 | [-16, 11, 63, 46, 58, 26] |
| 3 | 26 | with 63 | [-16, 11, 26, 46, 58, 63] |
The list is fully sorted after pass 3, because the swaps happened to place the remaining elements in order.
Related questions:
2025: 21 May Shift 1
2025: 30 May Shift 2
2026: 19 May Shift 1