hacktoberfest_2022
hacktoberfest_2022 copied to clipboard
Added the code for insertion sort
In this pull request, I have added the code for insertion sort in cpp with comments. Insertion sort is one of the sorting algorithms with time complexity of O(n2) for the average and worst case and O(n) for the best case. This code shows the simple implementation of insertion sort and printing of the elements before and after the usage of the sorting algorithm.
Thanks for reading the pull request!!
please follow the id and mssg here i will merge it after 2 days bcs more than 150 pr are pending