I did sorting of array concept in cpp. It consist of three sub-concepts.
They are :
Selection sort : Selection sort algorithm to sort an array of integers in ascending order. Where we will use 2 for loops and take a third element to assign index then swamping the elements.
Insertion sort : Insertion sort algorithm to sort an array of integers in ascending order. It contain of for and also a while loop . Where we will insert the element if the first element is greater than the next element.
Top comments (0)