Basics-Wrapup

View on GitHub

Selection Sort

here we identify minimum value index then swap it with first index then loop over again and identify the second minimum element to be swapped with the second index and so on

Algorithm steps are

time complexity O(n^2) space complexity S(1)