Linked List
16 animated solutionsPointer surgery: reversing, merging, cycle detection with fast/slow runners, and finding midpoints. Draw the arrows before you code. Every problem below plays as an animated walkthrough with solutions in Python, Java and C++. Companies that ask these most: Meta, Arista Networks, Yahoo.
Linked List Cycle
Merge Two Sorted Lists
Reverse Linked List
Add Two Numbers
Copy List With Random Pointer
Find The Duplicate Number
LRU Cache
Partition List
Remove Duplicates from Sorted List II
Remove Nth Node From End of List
Reorder List
Reverse Linked List II
Rotate List
Sort List
Merge K Sorted Lists
Reverse Nodes In K Group