What is the time complexity of a Selection Sort?
What is the time complexity of a Selection Sort?
Solution
✅ Correct Option: 2
Selection sort scans the unsorted part to find the minimum, then swaps it into place. The number of comparisons is the same for every input, whether sorted, reversed or random.
Related questions:
2026: 11 May Shift 2
2025: 16 May Shift 1
2025: 3 June Shift 2
2026: 24 May Shift 1