Implementing Merge algorithm to sort an integer array in ascending order, and try to make it as fast as possible.
First line:the size of the array Second line:the array to be sorted(numbers seperated by spaces)
N <= 1000
output between two brackets and each number seperated by a coma.
6
1 9 3 5 4 7
[1,3,4,5,7,9]
sort array in an ascending order.