Patterns
Learn how to choose the right approach and understand what the problem is asking.
Core Array & Subarray Patterns
Sliding Window
Uses a moving window to work with contiguous parts of an array or string.
Explore Pattern
Two Pointers
Uses two indices to scan or compare elements efficiently.
Explore Pattern
Prefix Sum
Stores running sums so subarray sums can be found quickly.
Explore Pattern
Hashing
Uses a hash map or set to store and look up values quickly.
Explore Pattern