Skip to content

Instantly share code, notes, and snippets.

View maqbull's full-sized avatar

Mohd Maqbool maqbull

  • India
View GitHub Profile
/*
Merge Sort
1. Declare left and right variable , where left = 0 , right = n-1.
2. find mid , which is left+right/2
3. Call recursively mergeSort on (left,mid) and (mid+1,rear)
4. 3rd step will continue till left<right.
5. Then we will call merge on the 2 subproblems.
*/