Skip to content

Instantly share code, notes, and snippets.

View leonamtv's full-sized avatar
📝
Studying....

Leo Vasconcelos leonamtv

📝
Studying....
View GitHub Profile
@christophewang
christophewang / MergeSort.cpp
Last active August 9, 2023 08:27
Merge 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 merge(int *array, int low, int mid, int high)
{
@christophewang
christophewang / QuickSort.cpp
Last active May 13, 2024 06:35
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)
{