This program takes an array of size n and sort it in increasing order in O(k*n) time.
Python Implementation:
The input consists of one lines-
- Line contains space separated integers which are required to be sorted
Space separated integers sorted in non-decreasing order
5 2 4 3 1
1 2 3 4 5