Quick Sort
#include<iostream> #include<conio.h> using namespace std; void quickSort(int arr[], int left, int right) { int l = left, r = right; int a; int pivot = arr[((left + right) / 2)]; while (l <= r) { while (arr[l] < pivot) l++; while (arr[r] > pivot) r--; if (l<=r) { a = arr[l]; arr[l] = arr[r]; arr[r] = a; l++; r--; } } if (left<r) quickSort(arr, left, r); if (l< right) quickSort(arr, l, right); } int main() { ...