Selection Sort
Example with Explanation:
Let’s take the array: [64, 25, 12, 22, 11]
Step-by-Step Execution:
First pass (i=0):
Initial array: [64, 25, 12, 22, 11]
Find the smallest element from the entire array (from index 1 to 4).
The smallest element is 11 at ...
gdcademy.hashnode.dev3 min read