Core Patterns
14 questions drawn from the 7 chapters in this section. If most land on the first try, you are ready for the next section. If not, the explanation after each answer says which idea to revisit.
Checkpoint
14 questions · first-try answers earn the most XP
What this checkpoint covers
Two Pointers
Opposite ends + same direction with 4 classics.
Sliding Window
Fixed vs dynamic window, longest substring without repeat.
Hash Tables & Counting
Two Sum, anagrams, frequency maps.
Prefix Sum
Range sums in O(1), subarray sum = k.
Binary Search
Sorted search + answer space in plain words.
Sorting Basics
When sort helps: intervals, Top-K, two pointers setup.
Kadane: Max Subarray
Best ending here? Extend or restart — O(n).
Next section: Essential Data Structures