Implement the classic selection sort algorithm in pure Python.
Constraints
Example
>>> selection_sort([64, 25, 12, 22, 11]) [11, 12, 22, 25, 64] >>> selection_sort([5, 2, 8, 1, 9, 3]) [1, 2, 3, 5, 8, 9] >>> selection_sort([1]) [1] >>> selection_sort([]) []
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints