This program takes an array of size N and sort it in increasing order in O(nlogn) time for both best as well as worst case
- The input consists of two lines.
- In the first line, there will be a single integer N.
- In the second line, there will be N space separated integers.
- There will be N space separated integers sorted in increasing order.
6
7 9 1 2 3 4
1 2 3 4 7 9