Skip to content

Instantly share code, notes, and snippets.

@rashedcs
Created January 7, 2017 15:30
Show Gist options
  • Save rashedcs/3dc2cf605f89e0d34d6f90ac88e19b48 to your computer and use it in GitHub Desktop.
Save rashedcs/3dc2cf605f89e0d34d6f90ac88e19b48 to your computer and use it in GitHub Desktop.
Algorithm MergeSort(arr, l, h)
{
if(low < high) then
{
mid := (low + high) / 2;
MergeSort(arr, low, mid);
MergeSort(arr, mid+1, high);
Merge(arr, low, mid, high);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment