Recognize the pattern. Not just the solution.
The skill that breaks people in real interviews is not solving the problem. It is recognizing which pattern to reach for when nothing is labeled. Each drill shows you a problem description with the labels removed. Your job: identify the pattern.
Problems are reframed in real-world contexts so you cannot just pattern-match on the LeetCode prompt you have seen before.
“This app finally made it click. I tried NeetCode, CTCI, and YouTube for years and still could not solve Two Sum. The beginner mental models for the patterns are genuinely so helpful. THANK YOU.”
Individual drills(5 accessible)
Unlock all 52 →You're building an expense-splitting app.
A code formatter needs to verify that all grouping symbols in a line are correctly nested and closed.
A warehouse stores products in sorted order by SKU number.
An event ticketing platform receives a batch of ticket IDs for validation.
A number transformation game repeatedly replaces a number with the sum of the squares of its digits.
A data pipeline receives an unsorted stream of numeric IDs from various sources.
A word-game engine needs to verify that a scrambled word is a valid rearrangement of a target word, same letters, just shuffled.
You're checking whether a message can be assembled by cutting individual letters from a source document, each letter from the source can only be used once.
A live-chat app highlights the first character a user types that they haven't typed before in that session.
A search engine wants to cluster queries that are rearrangements of the same letters so it can serve unified results for all of them.
A music streaming platform wants to surface the k most-played songs this week.
A social platform lets users set custom display names and flags any name that reads the same forwards and backwards (after stripping punctuation and spaces) as a 'mirror name'.
A photo management app stores image IDs in an array and uses 0 as a placeholder for deleted slots.
A sensor array records calibration offsets in sorted order, including negative values.
A price comparison tool scans a sorted catalog and needs to find two items whose prices add up to exactly a customer's budget.
A civil engineering simulator models water retention between pairs of levee walls built at evenly spaced positions.
A chemistry simulator finds all unique combinations of three signed concentration values that balance to zero, meaning their sum is exactly 0.
A fitness tracker calculates your best stretch for goal-setting.
A delivery scheduler needs the shortest consecutive stretch of route legs that meets a minimum total distance requirement.
A plagiarism detector checks whether any scrambled version of a short source phrase appears anywhere inside a longer document.
A session token generator scores candidate strings by the length of their longest run of unique characters, higher is more random.
A genomics tool checks whether a target gene sequence, or any scrambled arrangement of it, appears anywhere inside a longer genome strand.
A restocking truck travels a fixed route of supply depots, each stocked with a single product type.
A youth baseball app processes a scorebook that uses four entry types: an integer adds a direct score, '+' adds the sum of the last two scores, 'D' doubles the most recent score, and 'C' cancels the most recent score.
Design an undo-history manager for a text editor.
A weather alert app tells users how many days they need to wait before the next warmer day arrives.
A robotic inventory system processes pick-and-pack instructions as a stream of tokens.
A city zoning system calculates the largest solid rectangular billboard that could be mounted flush against a block of buildings, spanning one or more consecutive buildings.
A trading platform pre-computes 'next breakthrough' prices: for each price in a reference feed, the next price that appears later in the feed and is strictly higher.
Sensors on a circular race track record lap speeds at fixed positions.
A financial analytics service streams a market indicator's daily readings one at a time.
A leaderboard keeps scores in ascending order.
A CI pipeline manages thousands of build versions.
A sorted sensor calibration table was accidentally rotated at an unknown pivot point during a data migration.
A factory must clear a backlog of production batches before a fixed deadline.
A satellite telemetry archive stores readings sorted by timestamp, but a transmission gap caused the feed to wrap: recent readings were prepended in front of older ones, rotating the sequence at an unknown point.
Two customer service queues, each already sorted by wait time, need to be merged into a single sorted queue.
A browser keeps its page history as a linked list where each node points to the next page visited.
A task runner chains jobs via 'next job' pointers.
A podcast player needs to bookmark the midpoint episode in a playlist stored as a linked list, without first counting all episodes.
A financial analyst reviews a daily profit/loss log for a trading strategy.
A quant strategy tracks daily return multipliers for a portfolio.
A trading bot backtests a simple one-trade strategy on historical prices.
A UI framework renders tree-based layouts and needs a 'mirror' operation that flips the entire tree left-to-right.
A company stores its org chart as a binary tree where each node is an employee.
A paint bucket tool in a graphics editor fills a contiguous region of the same color starting from a clicked pixel.
A geographic mapping tool receives a satellite grid where each cell is either land or water.
The same geographic mapping tool needs to report the size of the largest landmass in the grid rather than just the count.
A fitness tracking app counts the number of distinct step patterns a user can take to reach the top of a staircase.
A logistics optimizer plans delivery stops along a route but has a constraint: two adjacent stops cannot both be selected (they'd conflict with each other's time windows).
A vending machine controller selects the fewest coins to return as change, given available denominations and an infinite supply of each.
A backup verification system checks whether two filesystem snapshots are identical, same structure and same values at every corresponding node.
Unlock all 47 remaining drills
Also includes both full courses, DSA and System Design, with concept lessons, graded tests, and cold-read capstones, plus all 150 guided problems with hint ladders and a C++, JS, and Python runner.
Cancel anytime. Not useful within 7 days? Email for a full refund. Secured by Stripe.