Hi everyone,

I am trying to implement a merge sort with linked list implementetaion. as you know, to implement the algorithm of merge sort, we should use three nested function,

mergeSort(),

mergeSort(),

merge().

So, because of this plenty of calling functions , the overflow stack exception is thrown.

How can I fix it

Thanks

I am trying to implement a merge sort with linked list implementetaion. as you know, to implement the algorithm of merge sort, we should use three nested function,

mergeSort(),

mergeSort(),

merge().

So, because of this plenty of calling functions , the overflow stack exception is thrown.

How can I fix it

Thanks