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!
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.