Runtime error in linked list merge sort
Hi Simran , there is a bit modification in your code . The midpoint was not giving a proper search as both the pointers were started with same node and fast->next->next was checked instead of fast and fast->next,
https://ide.codingblocks.com/s/58891 See the changes in your code.
1 Like