when i try to find the middle element everytime with slow and fast pointers both pointing to head.I am getting infinte loop. But when i put slow pointer at head and fast pointer at the node after head mergeSort works fine.
Merge Sort giving infinte loop
Thanks…Doubt resolved