This site uses JavaScript for navigation, themes, and games like 2048. Please enable JavaScript in your browser settings, then reload the page.
6 problems. Click one to open the details.
0/6 solved
1.Middle of Linked List
Tortoise-hare: slow at middle when fast ends.
2.Detect Cycle in Linked List
Floyd cycle detection.
3.Remove Nth Node From End
Two pointers with n gap.
4.Intersection of Two Linked Lists
Y-shaped lists; align lengths or two-pointer switch.
5.Sort Linked List
Merge sort on linked list O(n log n).
6.Segregate Odd and Even Nodes
Stable regroup odd-indexed then even-indexed nodes.