Skip to content

Instantly share code, notes, and snippets.

@christophewang
christophewang / QuickSort.cpp
Last active June 15, 2024 21:37
Quick Sort in C++
#include <iostream>
void printArray(int *array, int n)
{
for (int i = 0; i < n; ++i)
std::cout << array[i] << std::endl;
}
void quickSort(int *array, int low, int high)
{