Selection Sort


Selection Sort: Take out the current element and compare with all elements to the right to find the smallest element. Swap current and smallest element.
arr[] = {9, 6, 7, 5, 2};



 

Comments

Popular posts from this blog

Link List