QuickSort It!

Implement quicksort to sort an array in ascending order.

Input Format

Integer n

n space-separated integers

Output Format

Sorted array (space-separated)

Sample Input

5
3 1 4 1 5

Sample Output

1 1 3 4 5

Try Your Code

← Back to Problems List