Learn basic concept of c , c++ and python programming in regularcodes.com

Spread the post

C Insertion sort

Time complexity of this program O(n^2)

Below in C implementation of this problem.

Accepted Output

Before sort : 34, 13, 112, 63, 12, 32, 123, 456, 131, 46, 23, 121, 45

After Sort Bubble

data is :12, 13, 23, 32, 34, 45, 46, 63, 112, 121, 123, 131, 456

Output
 
 

Before sort data is : 34 13 112 63 12 32 123 456 131 46 23 121 45

After sort data is: 12 13 23 32 34 45 46 63 112 121 123 131 456

Spread the post