About This Pattern
Master the Linked List / Two Pointers pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.
Easy (1)
Remove Duplicates from Sorted List
Given the head of a sorted linked list, delete all duplicates such that each element appears only once.
Key Signals:
In-place modificationSorted listSkip nodes
Medium (1)
Partition List
Partition a linked list around value x, with all nodes less than x before nodes greater than or equal to x.
Key Signals:
Rearrange nodesMaintain relative orderTwo dummy heads