practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6069 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.
- 6069
- Problems
- 2250
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 4261–4290 of 6069 results
- System DesignMediumModel answerDesign a Multi-Step Order Processing Pipeline
Design the backend system that moves a customer order through reservation, payment, fulfillment, and shipping while handling failures and partial states gracefully.
System Designdistributed-systemsevent-drivenidempotencysaga-pattern - Trees & GraphsMediumAuto-gradedGrid Maze Shortest Path with A* Search
Tests knowledge of informed graph search, admissible heuristics, priority-queue mechanics, and canonical path reconstruction on a 2-D grid.
Trees & Graphsgraph-searcha-starbfsshortest-path - Machine LearningMediumModel answerBuild an Evaluation Platform for a Tool-Using AI Agent
Design a safe, repeatable harness that runs a tool-calling agent offline, grades its trajectories, and gates releases without touching production state.
Machine Learningagent-evaluationml-infrastructurellm-opssystem-design - System DesignMediumModel answerBuilding a Resumable Multi-Tenant Partner API Ingestor
Design an ingestion service that pulls from thousands of heterogeneous partner APIs with resumable checkpoints, raw-first staging, fair per-tenant throttling, and replayable normalization.
System Designsystem-designdata-ingestionrate-limitingidempotency - System DesignHardModel answerDesign a Real-Time Collaborative Spreadsheet Service
Design a multi-user spreadsheet system where concurrent editors stay in sync, conflicts resolve correctly, and clients recover cleanly after disconnects.
System Designreal-timecollaborative editingconflict resolutionOT - Statistics & ExperimentsEasyModel answerPiecewise WTP Function: Modeling a Subscription Price Cap
Model a streaming service's willingness-to-pay curve as a piecewise linear function, compute marginal value per title, and explain why the cap exists.
Statistics & Experimentspiecewise functionsmarginal analysiswillingness-to-payextrapolation - Greedy & IntervalsHardAuto-gradedMaximize Profit from Weighted Deadline-Constrained Tasks
Tests the classic weighted job scheduling with deadlines: greedily select a maximum-profit feasible subset of unit-length tasks, each with a deadline and profit, using a disjoint-set (union-find) structure for efficiency.
Greedy & Intervalsgreedyschedulingunion-findintervals - StringsHardAuto-gradedSum Two Large Numbers Represented as Strings
Tests whether a candidate can implement column-by-column addition with carry logic on digit strings, without converting the whole string to a native integer.
Stringsstringsmath-bitssimulation - Trees & GraphsEasyModel answerPath Sum Validation in Binary Trees
Determine whether any root-to-leaf path in a binary tree sums to a given target value.
Trees & Graphsbinary-treedepth-first-searchtree-traversal - System DesignHardModel answerDesign an Immutable Multi-Tenant Audit Log System
Design a compliance audit logging platform that ingests events at scale, proves tamper-evidence cryptographically, detects sequence gaps, and serves fast investigation queries.
System Designaudit-loggingcryptographymulti-tenancystream-processing - StringsEasyModel answerLog Ingestion Engine with Prefix-Operator Query Filtering
Build a two-phase pipeline that parses raw server log lines into structured records and filters them using a mini query language of typed prefix tokens.
Stringsparsingregexfilteringdesign - Statistics & ExperimentsEasyModel answerShould a Food Truck Join a Voucher Platform?
Model the unit economics of a deep-discount voucher deal, find the incremental break-even spend, and decide when the partnership helps or hurts profit.
Statistics & Experimentsunit-economicsbreak-evenincrementalityprofitability - Statistics & ExperimentsMediumModel answerDebiasing Crowd Ratings with a Hierarchical Rater Model
Build a latent-quality estimator for ads scored by uncalibrated reviewers, quantify uncertainty, and rank by a confidence-adjusted score.
Statistics & Experimentshierarchical-modelbayesianrater-biasranking - StringsEasyAuto-gradedProcess Sequential Variable Assignments
Tests parsing and evaluating variable assignments in order, handling literals, references, and arithmetic expressions.
Stringsparsingdictionaryexpression-evaluation - Data Structure DesignHardModel answerGreedy Text Tokenizer with Vocabulary Trie
Build a tokenizer that greedily matches the longest vocabulary token at each position, handling unknown characters with optional span merging.
Data Structure Designtriestring-matchingtokenizationgreedy-algorithms - Trees & GraphsMediumAuto-gradedSchedule Courses Given Prerequisites
Tests directed graph modeling, cycle detection, and topological ordering using Kahn's algorithm or DFS.
Trees & Graphstopological-sortgraphkahn-algorithmcycle-detection - System DesignMediumModel answerDebugging Multi-Step LLM Agent Tool Execution at Scale
Build an observability system to capture, diagnose, and query failures in LLM agent tool calls across retries and execution phases.
System Designdistributed-systemsobservabilityllm-agentstracing - Machine LearningMediumModel answerGuard a Coding Assistant Against Confidential Code Exposure
Design a safety pipeline that stops an LLM-powered coding tool from leaking secrets, internal credentials, or proprietary source code at training and inference time.
Machine Learningllmsafetyml-systemsinformation-security - Machine LearningMediumModel answerChoosing and Defending Metrics for a Rare-Class Abuse Detector
Pick, justify, and stress-test evaluation metrics for an imbalanced fake-account classifier, wiring thresholds to asymmetric action costs and biased labels.
Machine Learningimbalanced-classificationprecision-recallthreshold-tuningcalibration - BehavioralHardModel answerPrioritizing Market Launch Factors for a Social Video Platform
Rank four market-entry considerations, define measurement approaches, design a phased validation test, and identify launch risks with mitigation strategies.
Behavioralproduct-strategyprioritizationexperimentationrisk-management - Statistics & ExperimentsHardModel answerA/B Testing with Network Effects in Two-Sided Marketplaces
Design a rigorous experiment for a ranking algorithm change when users influence each other through marketplace interactions and social connections.
Statistics & Experimentsexperimentationcausal-inferencenetwork-effectssample-size - Math & Bit ManipulationMediumAuto-gradedReroll Game Expected Value and Break-Even Cost
Tests probability recursion, expected value with random stopping times, and cost-benefit analysis in a sequential game.
Math & Bit Manipulationprobabilityexpected-valuerecursion - System DesignMediumModel answerAutocomplete Input with Hand-Rolled Debounce
Build a search input that fetches and displays suggestions as the user types, using a debounce you write yourself and handling stale responses, keyboard navigation, and cleanup.
System Designreactdebounceasyncaccessibility - Data Structure DesignMediumAuto-gradedRound-Robin Task Distribution with Dynamic Server Availability
Tests stateful simulation with circular iteration, capacity tracking, and toggling availability flags.
Data Structure Designsimulationcircular-iterationstate-management - Greedy & IntervalsHardAuto-gradedMinimum Adjacent Swaps to Sort a Binary String
Tests greedy inversion-counting on a binary string to find the minimum number of adjacent swaps needed to push all 1s to the right.
Greedy & Intervalsgreedystringsinversion-count - Trees & GraphsMediumAuto-gradedCompute Reporting Metrics in a Company Hierarchy
Tests tree construction from parent pointers and post-order traversal to aggregate counts across nested organizational levels.
Trees & Graphstreedfspost-orderrecursion - System DesignMediumModel answerDesign a Personalized Article Feed Backed by Publisher APIs
Design a system that continuously pulls article metadata from third-party publisher APIs and serves each user a ranked, paginated feed based on the publishers and categories they follow.
System Designsystem-designfeedpollingpagination - System DesignMediumModel answerBuilding a Non-Blocking In-Process Publish/Subscribe Broker
Design a thread-safe pub/sub service whose publishers never wait on slow consumers, using per-subscription mailboxes, a snapshot-then-fan-out registry, and clean shutdown.
System Designconcurrencythreadingpub-subbackpressure - Arrays & HashingMediumAuto-gradedCluster Viewers by Recent Watch Set
Tests dictionary grouping, set operations on list suffixes, and canonical key construction for equivalence classes.
Arrays & Hashinghash-mapset-operationsgrouping - Statistics & ExperimentsMediumModel answerDiagnose a Skewed Revenue Distribution and Pick the Right Test
Read five summary statistics from a zero-heavy e-commerce dataset, name the distribution, and choose appropriate metrics and tests for an A/B experiment.
Statistics & Experimentsstatisticsa-b-testingdistributionshypothesis-testing