Back to all patterns

Two Pointers (Gap)

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Two Pointers (Gap) 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.

Medium (1)

Remove Nth Node From End of List

Remove the nth node from the end of a linked list.

Key Signals:

Create n-node gapMove both togetherUse dummy node