here is the code to partition in merge sort..am not able to understand actually how does recusrion works in it!!
MERGE SORT PARTITION
void partition(int arr[], int low, int high){
int mid;
if(low < high){
mid = (low + high)/2;
partition(arr, low, mid);
partition(arr, mid + 1, high);
mergeSort(arr, low, mid, high);
}
}
actually am getting messed up in many recursive problems and am not able to understand how does system stack works in recursion... am a beginner..