juniorSorting
What is Selection Sort?
Updated Apr 28, 2026
Short answer
An algorithm that repeatedly finds the minimum element from the unsorted part and puts it at the beginning.
Deep explanation
Sorting is the process of arranging data in a specific order. An algorithm that repeatedly finds the minimum element from the unsorted part and puts it at the beginning. Fundamental sorts are essential for understanding algorithmic trade-offs.
Real-world example
Sorting a hand of cards during a game.
Common mistakes
- Assuming O(n^2) algorithms are suitable for large production datasets.
Follow-up questions
- What is the worst-case for Bubble Sort?