DEV Community

Mukilan Palanichamy
Mukilan Palanichamy

Posted on

My journey in competitive programming

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.

Image description

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.

Image description

Top comments (0)