See the algorithm run, step by step.
Not static diagrams. Not YouTube embeds. Interactive timelines you control.
Each problem is reframed as an original scenario, visualized with synced code and narration, and solvable in five languages. Scrub the timeline, switch approaches, feed in your own input.
Concert Gate Scanner
A box-office scanner beeps each guest's ticket number at the gate. Raise a duplicate-use alert if any ticket beeps twice.
Letter Shuffle Verifier
Two gift tags arrive. Are they rearrangements of the same letters, or did someone mislabel a box?
Lost Receipt Pair Finder
You know the dinner total but lost the receipt. From a list of drink prices, find the two whose sum matches the bill.
Lunch Menu Signature Sort
A lunch menu lists dishes whose names are jumbles of the same letters. Group them so the kitchen can print one row per base dish.
Festival Booth Favorites
Each entry in the festival log is a booth number a guest visited. Report the k most-visited booths.
Dispatch Packet Bundler
A dispatcher must bundle a list of messages into a single transmission string and the receiver must be able to recover the exact original list — any character can appear in a message.
Relay Baton Totals
Each runner on a relay team is awarded the product of their teammates' leg scores — never their own. Compute every runner's score.
Checkerboard Audit
A puzzle magazine checks a partially filled Sudoku board against the three house rules before publishing.
Marathon Bib Run
Runners drop their race bibs at the finish in random order. Find the length of the longest run of consecutive bib numbers.
Mirror Sign Verifier
A billboard installer tests whether a slogan reads the same from both ends after stripping punctuation and casing.
Sorted Price Pair
A sorted price catalog is on your desk. Find two line-items whose prices add up to a budget target.
Zero-Sum Trio Hunt
An inventory auditor must find every trio of ledger entries that cancel to exactly zero.
Widest Water Reservoir
A planner inspects a row of posts of varying heights. Picking two posts, the reservoir's water volume equals the shorter post times the distance between them. Maximize it.
Rooftop Rain Reservoir
A rooftop skyline collects rain in the dips between taller sections. Compute the total volume of water held after a storm.
Market Timing Profit
A trader sees the day-by-day price of a single stock. Picking exactly one buy day and one later sell day, what is the maximum profit?
Fresh Tasting Streak
A sommelier tastes bottles in order and keeps serving until a flavour repeats. What's the longest run of unique flavours?
Flexible Flag Repaint
A row of colored flags; you may repaint at most k of them. What's the longest run of a single color you can achieve?
Anagram Window Alarm
A fraud detector raises an alarm whenever any contiguous slice of an incoming message contains exactly the letters of a watch-list word.
Minimum Keyring Window
A set of required keys and a long chain of pouches. Find the shortest contiguous stretch of pouches whose multiset of keys covers everything you need.
Window Peak Scanner
A moving spotlight of width k scans a row of sensor readings. For every spotlight position, report the brightest reading inside it.
Bracket Balance Audit
A linter inspects a punctuation string containing `()`, `[]`, and `{}`. Every opener must be closed in the correct order.
Minimum-Aware Stack
Design a stack that supports push, pop, top, and getMin — each in O(1).
Postfix Expression Evaluator
A calculator receives tokens in reverse-Polish order (operator after its operands). Compute the final integer.
Bracket Blueprint Builder
A code formatter emits every valid nesting of N pairs of brackets for a stress test suite.
Warmer Day Countdown
For each day's temperature reading, report how many days you must wait before a warmer day arrives (0 if none).
Freeway Convoy Count
Cars drive the same freeway toward a target. A car cannot overtake; it slows down to match the one in front. How many distinct convoys arrive?
Skyline Rectangle Scan
A row of unit-width buildings forms a histogram. Find the biggest axis-aligned rectangle that fits entirely inside the skyline.
Shelf Lookup
An archivist walks the shelf of SKU numbers (sorted) and jumps halfway each step to find a specific tag — or confirm it's not there.
Flattened Grid Lookup
A warehouse packs items row-first into a grid whose rows and row-starts are both sorted. Find a specific SKU.
Banana Pacing Rate
A koala eats at some fixed rate k bananas/hour from several piles. Find the slowest rate that finishes within h hours.
Rotated Low Point
A once-sorted shelf of distinct IDs was rotated by an unknown offset. Find the smallest ID in O(log n).
Rotated Target Hunt
A previously sorted catalog was rotated unknown times. Locate a target entry in O(log n).
Timeline Snapshot Store
A key-value store records writes with timestamps. A read at time t returns the value from the latest write at time ≤ t.
Dual-Sorted Median
Two independently sorted sensor logs are to be merged conceptually. Report the median of the combined readings in O(log(min(m,n))).
Reverse Chain
A singly linked chain of beads. Rebuild it so the last bead becomes the first and all arrows face backward.
Merge Sorted Chains
Two already-sorted sensor logs stream in. Weave them into one sorted log in place.
Loop Detector
Audit a linked chain for a hidden feedback loop. Report whether any node is reachable from itself.
Fold Chain
A theatre seating list in a strip must be folded so attendees sit alternately from the front and the back.
Dropkick From Tail
A queue of waiting tickets is linked front-to-back. Remove the nth-from-last ticket in one pass.
Carbon Copy Chain
Each node has a next pointer AND a random pointer to any other node. Produce a deep copy without using extra per-node storage.
Digit Chain Sum
Two very large non-negative integers are stored one digit per node, least-significant digit first. Produce their sum in the same format.
Duplicate Detective
An array of n+1 integers all in [1, n] must have a repeat. Find it without modifying the array in O(1) extra space.
LRU Cabinet Keeper
A librarian keeps the N most recently used books on a priority shelf; the least-recent one is evicted when the shelf is full.
K-Way Chain Merger
A tournament coordinator pairwise merges k sorted standings into one grand leaderboard in O(N log k).
K-Fold Chain Reversal
A conveyor-belt sorter reverses parcels in fixed-size windows of k; any trailing partial window is left alone.
Locale Layout Inverter
A UI rendering engine flips directory trees and navigation hierarchies to support Right-to-Left (RTL) locales.
Canopy Height Scanner
An aerial LiDAR inspects tree canopies as nested branch nodes to calculate the maximum canopy depth.
Signal Span Router
A computer network analyst measures the largest communication latency (diameter) in a decentralized hub topology.
Silo Balance Monitor
A silo inventory router checks whether storage structures have evenly balanced bins to distribute physical load safely.
Structural Sync Auditor
An administrator compares a backup folder hierarchy against a source schema to confirm structures match completely in metadata and order.
Subassembly Matcher
An industrial factory scanner analyzes modular blue-prints to determine if a smaller sub-assembly configuration exists exactly inside a larger system layout.
Common Distribution Grid
An electrical utility layout maps power hubs in sorted voltage values. To find the closest mutual hub for two houses, engineers calculate the Lowest Common Ancestor.
Wave Broadcast Scanner
A wireless antenna broadcasts a spatial ping. The network analyzer logs the propagation waves horizontal level-by-level.
East Horizon View
Standing on the Eastern horizon of a forest development lot, a surveyor logs only the tallest, outermost branches visible.
Good Nodes Accumulator
A hydrologist counts unblocked watershed channels. A point is an unblocked 'good reservoir' if its elevation matches or exceeds all upstream elements.
Sorted Catalog Verifier
A librarian audits a hierarchical shelf catalog to confirm it satisfies the BST ordering invariant across every ancestor-descendant pair.
Rank Index Finder
A tournament database holds player scores in a sorted hierarchy. The ranking engine needs the K-th lowest score efficiently.
Blueprint Reconstructor
An archaeology lab holds two separate traversal logs from a lost ancestral family tree. Reconstructing the full genealogy requires splicing preorder (ancestry priority) with inorder (left-to-right chronology).
Maximum Current Path
A power grid analyst routes current through a branching junction network; some junctions amplify and others resist. Find the single path with maximum net current flow.
Codec Transceiver
A satellite ground station must beam a hierarchical sensor map down to orbit as a flat telemetry string, then reconstruct it bit-for-bit on the receiver.
K-Floor VIP Keeper
A hotel keeps only the K highest-tier guests on its exclusive floor; each new arrival may bump out the lowest-tier VIP.
Boulder Showdown Arena
Two heaviest boulders are hurled at each other every round. Equal weights annihilate; unequal weights leave a fragment that re-enters the arena.
Nearest Beacon Filter
A space station retains telemetry links for only the K nearest beacons, dropping farther ones as new signals arrive.
Rank Rail Selector
A trading desk ranks instrument scores and only cares about the K highest; smaller noise is discarded on the fly.
CPU Cooldown Scheduler
A single-core CPU dispatches tasks of various types; each type must wait N cycles before running again. Minimize total cycles (including idles).
Streaming Timeline Hub
A micro-blogging backend fans in tweets from a user and everyone they follow, surfacing the 10 most recent in merged order.
Dual Dam Median Watcher
Two reservoirs — a lower dam (max-heap) and an upper dam (min-heap) — split an incoming water-level stream so their peak levels always sandwich the running median.
Lexicon Lattice
A keyboard autocomplete routine ingests a dictionary and later answers whole-word and prefix lookups in O(length).
Wildcard Word Vault
A password-recovery drawer stores admitted words; later queries probe entries using '.' as a universal joker slot.
Puzzle Board Harvest
A word-search generator sweeps a letter grid and collects every dictionary word spelled by connected neighboring cells.
Powerset Expander
A feature-flag planner enumerates every possible on/off combination of distinct toggles.
Coin Combo Mint
A vending mint lists every multiset of coin denominations whose face values sum to a target amount.
Receipt Reconciler
A fraud auditor finds every subset of receipt amounts that reconciles to a disputed total — each receipt used at most once, duplicates in the pile must not inflate the answer list.
Lineup Shuffler
A scheduling coach enumerates every ordering of a roster for alternate practice lineups.
Duplicate-Aware Powerset
A merchandise bundler generates every distinct bundle of items from a stock list that may contain duplicates.
Grid Letter Trailblazer
A route planner tries to spell a target word by walking neighboring tiles on a letter board without revisiting any cell.
Palindrome Partitioner
A linguistic analyzer segments a text into contiguous slices that each read the same forwards and backwards.
Dialpad Dictionary Dialer
A T9 keypad emits every possible letter combination for a dialed digit sequence (e.g. '23' -> ad, ae, …, cf).
Royal Court Standoff
A chess tutor arranges N queens on an N×N board so none attack each other across rows, columns, or diagonals.
Island Census
A cartographer counts contiguous landmasses on a satellite grid where '1' = land and '0' = water.
Largest Island Surveyor
A geographer ranks landmasses by acreage from a binary satellite map and reports the largest.
Social Graph Mirror
A privacy pipeline deep-copies an entire friends-of-friends graph (preserving cycles) before sharing with downstream analytics.
Firewatch Distance
A fire marshal annotates every empty room with the shortest Manhattan distance to the nearest emergency exit (gate). Walls block paths.
Citrus Spoilage Timer
A warehouse tracks how a mold outbreak on crate-stacked oranges spreads to all neighbors each minute.
Watershed Divide
A hydrology grid identifies cells whose rainwater can flow to BOTH the Pacific (top/left borders) and Atlantic (bottom/right borders) along downhill-only paths.
Captured Region Flipper
A board-game solver flips captured enemy territories to friendly, keeping only groups touching the board edge safe.
Course Prerequisite Plan
A university registrar checks whether a student can finish every course given the prerequisite dependency graph.
Course Order Scheduler
A degree planner emits a valid semester-by-semester course order that respects every prerequisite — or declares the plan impossible.
Union-Find Tree Validator
An ops reviewer checks whether a hardware wiring diagram with n nodes and some bidirectional cables forms a single acyclic tree.
Component Counter
A network analyst counts how many isolated subnets emerge from a list of peer-to-peer links across n machines.
Spare-Link Finder
A tree-shaped mesh network has one extra cable that creates a cycle. Identify the last-added cable that must be removed.
Word-Ladder Transformer
A spelling game morphs one word into another by changing one letter at a time; each intermediate must come from a given dictionary.
Signal Broadcast Timer
A master clock sends a sync pulse from node k through a directed, weighted comm mesh. Return the moment every node has received the pulse.
Flight Itinerary Weaver
A travel agent reconstructs a single itinerary that uses every provided flight ticket exactly once, starting from JFK, preferring lexicographically smaller stops when choices tie.
Grid-Point Spanner
A fiber contractor connects every village (point) at minimum trenching cost using Manhattan distance between any pair.
Rising Tide Pathfinder
A swimmer in a bowl-shaped grid can enter cell (r,c) only when the tide ≥ its elevation. Find the earliest tide reaching bottom-right.
Lexicon Ordering
Linguists infer a lost alphabet's letter order by comparing adjacent words sorted in that unknown alphabet.
Budget Flight Finder
A budget traveler finds the cheapest ticket chain from src to dst using at most k layovers.
Staircase Hopper
A courier counts the number of unique paths up a straight staircase while taking either 1 or 2 steps at a time.
Treadmill Ticket Cheapskate
A gym chain charges a per-step entry fee; a budgeter wants the minimum total toll to pass through to the top floor using 1- or 2-step hops.
Burglar Row Planner
A cat burglar picks a non-adjacent subset of houses on one street to maximize total loot without triggering alarms between neighbors.
Circular Burglar Row
A cat burglar hits a round of neighboring houses (a ring); the first and last share an alarm wall.
Longest Mirror Substring
A text editor highlights the longest contiguous slice of a string that reads identical forwards and backwards.
Palindrome Counter
A linguistics tool counts every mirror-reading slice (overlapping allowed) in a text sample.
Numeric Decoder
A spy maps 1→A, 2→B, …, 26→Z and counts the number of distinct letter sequences a digit string could decode to.
Minimal Coin Changer
A cashier returns a specific amount using the fewest coins from an unlimited supply of given denominations.
Max Product Streaker
A trader finds the contiguous day streak with the highest cumulative multiplicative return.
Dictionary Breaker
A tokenizer checks whether a run-on string can be chopped into a sequence of dictionary words.
Longest Ascending Trail
A biologist finds the longest run of ever-increasing specimen weights in a chronological log.
Fair-Share Divider
A sibling arbiter checks whether a bag of marbles can be split into two piles of equal total value.
Grid Path Counter
A delivery robot in an m×n warehouse walks only right or down; count all distinct corner-to-corner routes.
Shared Script Finder
A DNA analyst finds the longest common ordered match between two strands (letters need not be contiguous).
Cooldown Trader
A day trader must wait one day after any sale before buying again. Compute the maximum lifetime profit.
Combo Coin Counter
An accountant counts the distinct combinations of unlimited-stock coin denominations that total an exact amount.
Signed-Sum Picker
A kid assigns + or - to each marble in a bag; count the ways the result equals the target.
Weave Checker
A merge-sort tool verifies whether a long string could have been produced by interleaving two shorter strings while preserving each one's order.
Hillside Climber
A hiker finds the longest strictly ascending trail on an elevation grid moving one cell at a time (4-way).
Subsequence Appearance Counter
A proofreader counts how many distinct ways a target word appears as a subsequence of a source text.
Spell-Correction Minifier
A spell-check engine turns one word into another using the fewest single-character insert/delete/replace edits.
Fireworks Bursting Planner
A pyrotechnician bursts a row of balloons in an order that maximizes coins = left·current·right (with implicit 1s outside).
Pattern Shell Validator
A mini-regex engine supports '.' (any char) and '*' (zero or more of the previous char) and must match the whole input.
Hot Streak Finder
A sports analyst finds the contiguous game stretch with the highest cumulative point total (positive and negative scores allowed).
Last-Tile Reacher
A platformer character on tile 0 jumps up to nums[i] tiles from tile i. Can they reach the last tile?
Minimum Hops
The platformer finds the FEWEST jumps to clear the stage, given per-tile max jump distances.
Petrol Loop Picker
A tour organizer picks the only starting gas station from which the vehicle can complete the circular route.
Card Flush Builder
A card player checks if their hand can be grouped into runs of consecutive values of a fixed length.
Target Triple Composer
A sculpting robot picks any triplets whose coords ≤ target, taking element-wise max; can it hit the exact target triplet?
Letter Zone Splitter
A labeler splits a text into the maximum number of contiguous zones so that each character appears in only one zone.
Bracket Elasticity Check
A parser verifies that a mix of '(' , ')' and wildcard '*' (which can be '(' , ')' or empty) is a valid bracket string.
Calendar Hole Patcher
A scheduler inserts a new busy block into a sorted calendar of non-overlapping blocks, merging any overlaps.
Overlap Collapser
A calendar app collapses any overlapping meetings into single union intervals.
Lecture Hall Pruner
An admin removes the FEWEST sessions from a conflict-ridden schedule so that the remainder is conflict-free.
Boardroom Conflict Check
A dispatcher checks whether one presenter can take all meetings back-to-back with no clash.
Minimum Rooms Required
A conference organizer finds the minimum number of rooms to host all meetings without conflicts.
Shortest Covering Interval
For each query timestamp, pick the SHORTEST interval that covers it; emit -1 if none covers.
Portrait Rotator
A photo-viewer rotates an n×n image 90° clockwise in place without extra buffers.
Spiral Reader
A field surveyor walks a rectangular garden in a spiral from the top-left and records what they pass.
Zero-Wave Flooder
A quality inspector zeroes out every row and column that contains a defective cell, using constant extra space.
Happy Number Dance
A puzzler iterates 'sum of squared digits' until the sequence hits 1 (happy) or revisits a value (unhappy loop).
Odometer Rollover
An odometer adds 1 to a large non-negative integer stored as a digit array, propagating carries.
Rapid Exponent
A calculator computes x^n using binary exponentiation to achieve logarithmic cost.
Giant Number Multiplier
A big-integer library multiplies two arbitrarily long decimal strings without using built-in big-number types.
Collinear Square Detector
A geometry service maintains a growing cloud of points and, on demand, counts axis-aligned squares that include a query point as one corner.
Lone Rune Finder
A monk sorts magical runes that always come in matching pairs — except one rogue rune. Find it.
Hamming Weight
A network engineer counts the number of 1-bits in a 32-bit identifier (the Hamming weight).
Popcount Table
A profiler builds a lookup table of popcount(i) for i in [0, n].
Mirror-Bit Flipper
A network stack reverses the bits of a 32-bit value to normalize MSB/LSB ordering.
Missing Spot Finder
A librarian has shelf slots 0..n but one is empty; find the missing slot number.
Carry-Chain Adder
An ALU designer implements integer addition using only XOR and AND gates (no '+' operator).
Integer Mirror
A sign reader reverses the digits of a signed 32-bit integer, returning 0 if the result would overflow.