Quick sort: O(n2)
True correct Quick sort:
#include
#include
using namespace std;
int a[100];
/*void swap(int a,int b){
int tmp;
tmp=a;
a=b;
b=tmp;
}*/
void quicksort(int left,
Quick sort: O(n2)
True correct Quick sort:
#include
#include
using namespace std;
int a[100];
/*void swap(int a,int b){
int tmp;
tmp=a;
a=b;
b=tmp;
}*/
void quicksort(int left,