Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
void swap(int* a, int* b) {
int t = *a;
*a = *b;
*b = t;
}
int partition(int arr[], int low, int high ) {
int pivot = arr[high];