
LeetCode Patterns: The 22 That Cover the Problem Set
LeetCode patterns are the reason two people who have solved the same number of problems can walk into the same interview with completely different odds. One…
Every post on the algorithm patterns behind the problem set.

LeetCode patterns are the reason two people who have solved the same number of problems can walk into the same interview with completely different odds. One…

A monotonic stack is an ordinary stack with one rule attached: its contents are kept sorted, and anything that would break the order is popped first. That…

The sliding window algorithm turns a nested loop over every subarray into a single pass with two indices. It is the highest-leverage pattern in interview…

A topological sort orders the nodes of a directed graph so that every edge points forwards — if u must happen before v, then u comes first. That is the whole…
Stealth Interview is a desktop app for macOS and Windows that reads the problem off your screen and answers with a working solution, a step-by-step explanation and its time and space complexity — while staying invisible to screen sharing.
Get Stealth Interview