Quick Sort

3.5

2 votes
Very-Easy
Problem

You have been given an array A of size N.This array contains integers ranging from 1 to 109. You need to sort the contents of this array by their value and then print the contents of it.

Input Format:

The first line contains a single integers N denoting the size of the array. The next line contains N space separated integers denoting the contents of the array.

Output Format:

Print N space separated integers, i.e. the final sorted array.

Constraints:

1N106

1A[i]109

Time Limit: 2
Memory Limit: 256
Source Limit:
Editor Image

?