Scholasticpal / HacktoberFest2021_

Make your first PR! ~ A beginner-friendly repository made specifically for open source beginners. Add your profile, a blog, or any program under any language or update the existing one. Just make sure to add the file under the correct directory. Happy hacking!
10 stars 59 forks source link

Added selection sort #92

Closed SrishtiSingh-hub closed 2 years ago

SrishtiSingh-hub commented 2 years ago

This a sorting algorithm that maintains two sub-arrays:

One sub-array is the sorted array Another sub-array is the unsorted array

It first finds the smallest element in the unsorted array and swaps it with the first element and so on until the entire array is sorted.