Two pointers: how it works and when to use it
Two pointers
Two pointers walk a list from both ends, or one behind the other, so a pair search takes one pass. Signals, a worked example, code and practice.
With 2 videos
Guides
Each guide explains one pattern in plain words. It starts with a short narrated video. Then it walks through a worked example, the code, common mistakes and problems to practice.
Two pointers
Two pointers walk a list from both ends, or one behind the other, so a pair search takes one pass. Signals, a worked example, code and practice.
With 2 videos
Sliding window
A sliding window keeps a run of neighbors and moves it along the input, so each item is handled once. Signals, a worked example, code and practice.
With a 2 min 20 s video
Binary search
Binary search halves a sorted range at every step, so a million items take about 20 checks. Signals, a worked 2D grid example, code and practice.
With a 1 min 56 s video
Graphs, BFS and DFS
How to walk a graph or a grid level by level (BFS) or path by path (DFS), and how to put tasks in an order that respects every rule (topological sort).
With a 2 min 28 s video
System design
How system design interviews are run, and a five-step approach to repeat: requirements, rough numbers, API, data and scaling, with two worked examples.
With 2 videos
Type a problem, a pattern or a system to design. You get a narrated video with drawings and captions, usually ready in 5 to 9 minutes.
3 free videos with your own AI key. An AI key is a code from an AI company, such as Anthropic or OpenAI. Your own AI account pays for the writing. See pricing
Make a video