Sort the Array
Sort integers in non-decreasing order. Try writing your own sort (merge sort or quick sort) before using the library one!
Input
, then integers.
Output
The sorted array.
Constraints
Sample 1
Input
6 5 2 9 1 5 6
Output
1 2 5 5 6 9
Sort integers in non-decreasing order. Try writing your own sort (merge sort or quick sort) before using the library one!
, then integers.
The sorted array.
Input
6 5 2 9 1 5 6
Output
1 2 5 5 6 9