Skip to content

Instantly share code, notes, and snippets.

@christophewang
christophewang / QuickSort.cpp
Last active November 8, 2024 03:18
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)
{