Write a program below |
#include <iostream>
using namespace std;
void quickSort(int arr[], int left, int right) {
|
|
}
int main()
{
int n;
cin>>n;
int* a = new int[n];
for(int i = 0 ; i < n ; i ++)
{
cin>>a[i];
}
quickSort(a,0,n-1);
for(int i = 0 ; i < n ; i ++)
{
cout<<a[i]<<" ";
}
}
|