practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5988 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.
- 5988
- Problems
- 2219
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 391–420 of 5988 results
- System DesignHardModel answerLive Courier Fleet Tracking and ETA Platform Design
Design an end-to-end platform that streams courier GPS, computes routes and ETAs, manages order assignment, and powers live maps for dispatchers and customers.
System Designsystem-designstreamingkafkageospatial - Trees & GraphsMediumAuto-gradedSplit a Nested Structure into Values and a Shape Template
Implement a single function that extracts leaves and a shape template from nested lists and dicts, then rebuilds the original from them, testing recursion and traversal order.
Trees & Graphsrecursiondfsnested-structuresdictionaries - Statistics & ExperimentsHardModel answerPricing Dice, Coin and Card Wagers: EV, Arbitrage, Kelly
Price wagers on dice, coins and card draws, detect arbitrage in a quote table, choose a Kelly-based stake size, and estimate the chance of a profit after T rounds.
Statistics & Experimentsexpected-valuekelly-criterionarbitragenormal-approximation - BehavioralHardModel answerStaff Infra Manager Conversation: Career Story, Exit Reasons, Fit
Prepare a three-part conversation for a staff-level backend infrastructure role: a decade-long career narrative, a forward-looking reason for moving, and a grounded mapping to the team's problems.
Behavioralbehavioralstaff-engineerinfrastructurecareer-narrative - Data Structure DesignHardAuto-gradedCredit Ledger Simulator with Merges and Delayed Rewards
Simulate a timestamped ledger with deposits, transfers, spends with delayed cashback, account merges and spend rankings, using union-find and a min-heap.
Data Structure Designdesignunion-findheapsimulation - Statistics & ExperimentsEasyModel answerAuditing a Regression Model Before You Trust It
Explain how to check whether a regression model with a decent headline error can be trusted, covering splits, leakage, residuals, coefficients, and whether extra complexity is justified.
Statistics & Experimentsregressionmodel-validationresidual-analysismulticollinearity - Arrays & HashingMediumAuto-gradedCheck Whether Two Custom Dice Give a Flat Sum Distribution
Decide whether two lists of die-face labels make every total from 1 to 12 appear exactly three times across all 36 face pairings, using pair counting.
Arrays & Hashingcountinghash-mapenumerationprobability - System DesignMediumModel answerDesign an Enterprise Calendar System
Architect a scalable calendar service handling interval-based queries, concurrent updates, recurring schedules, and real-time user invitations.
System Designsystem-designdistributed-systemscalendartime-series - Math & Bit ManipulationMediumAuto-gradedGrowing Worker Pool Sized by Peak Load Readings
Track a pool that only grows, sized to cover each load reading with fixed-capacity workers; tests ceiling division and running-maximum reasoning with large values.
Math & Bit Manipulationsimulationprefix-maximumceiling-divisionarrays - Data Structure DesignMediumAuto-gradedExpiring Key-Value Store Driven by a Virtual Clock
Simulate a key-value store with per-key expiry on a manual clock, handling overwrites, deletes and cleanup of expired entries via a command list.
Data Structure Designdesignhash-mapheapttl - Heaps, Sorting & SearchMediumAuto-gradedLargest Threshold Met by Daily Step Counts
Find the largest integer k such that at least k entries in a list are at least k, testing sorting or counting-based selection and reasoning about monotone thresholds.
Heaps, Sorting & Searchsortingcountingh-indexarrays - Data Structure DesignMediumModel answerBuild a Wildcard-Aware URL Router with Literal Priority
Design a router that stores path templates with {name} wildcards and resolves concrete paths to a handler plus captured values, preferring exact segments and backtracking when they dead-end.
Data Structure Designtriebacktrackingroutingstring-parsing - Dynamic ProgrammingHardAuto-gradedAdaptive Word Guessing Minimax Strategy
Find the minimum number of worst-case letter guesses required to isolate a hidden word against an adversarial host.
Dynamic Programmingdynamic-programmingbit-manipulationminimaxmemoization - Greedy & IntervalsMediumAuto-gradedPeak Crew Size for Scheduled Shifts
Compute the smallest crew that covers every scheduled task by finding the peak simultaneous demand, treating each task as half-open and parsing HH:MM times.
Greedy & Intervalssweep-lineintervalsgreedysorting - Statistics & ExperimentsHardModel answerComparing Four Marketing Channels on Cost Efficiency via Experiment
Plan a randomized multi-arm experiment to rank four paid acquisition channels by cost efficiency, covering metric, hypotheses, sizing, budget, duration and follow-ups.
Statistics & Experimentsexperiment-designmulti-arm-testgeo-experimentincrementality - Data Structure DesignHardModel answerIn-Memory Bank With Delayed Payments, Cancellation and Spend Ranking
Extend an in-memory bank with delayed payments that can be canceled, record success or failure for each, discard stale entries, and rank accounts by total outgoing money.
Data Structure Designdesign-dsheaplazy-deletionsimulation - Dynamic ProgrammingMediumAuto-gradedBest Final Score from Affine Card Purchases Under a Budget
Choose a budget-limited subset of cards and an order to maximize a score updated by an affine rule, testing subset and ordering search and exchange-argument reasoning.
Dynamic Programmingsubset-searchpermutationsexchange-argumentknapsack - BehavioralMediumModel answerTwo Behavioral Stories: A Disagreement and a Hard Limit
Prepare two concise stories for a short behavioral round: one about resolving a disagreement with a colleague, and one about delivering despite a hard limit on time, resources, access or knowledge.
Behavioralbehavioralstar-methodconflict-resolutioncommunication - Statistics & ExperimentsMediumModel answerRaising Reader Giving for a Free, Ad-Free Encyclopedia
Propose a product strategy to increase individual donations to a nonprofit encyclopedia without ads or paywalls, covering metrics, segments, funnel leaks, prioritized ideas and trust guardrails.
Statistics & Experimentsproduct-strategymetricsfunnel-analysisexperimentation - Statistics & ExperimentsHardModel answerDiagnosing a Sudden Dip in Checkout Completion for One City
A city's checkout completion rate fell 8% week over week. Outline how to validate the drop, localize it, form causal hypotheses, test significance, and recommend a recovery plan.
Statistics & Experimentsroot-cause-analysismetric-investigationdifference-in-differencesfunnel-analysis - Trees & GraphsMediumModel answerIdentify Node Value Present Across Most Depth Levels
Find the binary tree node value that appears across the highest number of unique depth levels.
Trees & Graphstrees-graphsbreadth-first-searchhash-table - System DesignMediumModel answerExact Top-1,000 Terms Across a Petabyte of Text Files
Design a distributed batch pipeline that exactly counts term occurrences across petabytes of immutable text and returns the 1,000 most common, handling skew, split edges and retries.
System Designdistributed-systemsmapreducefault-tolerancedata-skew - System DesignMediumModel answerSecure Embedded Bank-Transfer Checkout Component Design
Design a merchant-embeddable bank-payment checkout component: isolated iframe, safe parent-frame messaging, token exchange, asynchronous settlement, and webhook reliability at high scale.
System Designsystem-designpaymentsiframe-securitypostmessage - Statistics & ExperimentsMediumModel answerEvaluating a Revenue-Based Merchant Capital Product
Design a performance measurement and experimentation framework for a merchant lending product balancing capital growth against risk.
Statistics & ExperimentsA/B TestingCohort AnalysisProduct MetricsFinancial Modeling - BehavioralMediumModel answerWalk Through a Hard Project Problem You Personally Solved
Behavioral practice: tell one bounded story about a tough project obstacle, showing your own decisions, teamwork, measurable outcome, and what you would do differently.
Behavioralbehavioralstorytellingownershipincident-response - Statistics & ExperimentsMediumModel answerKids' Book Storage Unit: Users, MVP Scope and Success Metrics
Design a physical book storage product for young children: choose a target user, rank their pain points, set design principles, cut an MVP, and define success metrics with guardrails.
Statistics & Experimentsproduct-senseproduct-designmetricsmvp - Heaps, Sorting & SearchMediumAuto-gradedTruncate and Renormalize a Next-Token Distribution
Sort a probability list with deterministic tie-breaking, then build two truncated, renormalized versions: fixed-size top-k and cumulative-mass top-p.
Heaps, Sorting & Searchsortingprefix-sumprobabilityfloating-point - System DesignMediumModel answerDiagnosing a Latency or Throughput Regression in a Microservice Fleet
Describe a disciplined, evidence-driven method for finding and fixing a slowdown in a multi-service system, from first signals through safe validation to long-term prevention.
System Designobservabilitydebugginglatencydistributed-tracing - Heaps, Sorting & SearchMediumAuto-gradedLocate a Value in a Cyclically Shifted Ascending List
Search a cyclically shifted strictly increasing list of distinct integers for a value in O(log n), returning its index or -1, including unshifted and single-element cases.
Heaps, Sorting & Searchbinary-searcharraysrotated-arraydivide-and-conquer - Stacks & QueuesMediumAuto-gradedInfer Execution Events from Call Stack Snapshots
Reconstruct chronological function START and END lifecycle events by evaluating structural differences across consecutive call stack snapshots.
Stacks & Queuesstacks-queuesarraysstrings