practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6093 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.
- 6093
- Problems
- 2258
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 2131–2160 of 6093 results
- Data Structure DesignHardModel answerThread-Safe Idempotency Key Processor
Design a thread-safe idempotency manager that executes tasks at most once per key, blocks concurrent callers, caches results with TTL, and cleans up expired records efficiently.
Data Structure Designconcurrencycachingdesigndata-structures - System DesignMediumModel answerBuild a Secure Remote Code Grading Service for Contests
Design a distributed service that safely runs untrusted submissions against hidden tests, returns verdicts reliably, and stays responsive during contest traffic bursts.
System Designsystem-designsandboxingmessage-queuescalability - System DesignMediumModel answerOrder Gateway Protocol Design for Connecting to a Trading Venue
Design the session and application messages between an in-house order management system and an external venue, covering dedupe, sequencing, replay and recovery after disconnects.
System Designsystem-designmessaging-protocolsidempotencyfix-protocol - Arrays & HashingEasyAuto-gradedCompute Aggregate Distance Tolls for Interleaved Logs
Process interleaved time-ordered scanner events to compute cumulative segment-based charges across all entities.
Arrays & Hashinghash-maparraysimulation - Greedy & IntervalsMediumModel answerSmallest Vehicle Pool for Location-Bound Shuttle Runs
Given timed runs between named stops, find the fewest shuttles needed when each shuttle can only continue from the stop where its previous run ended.
Greedy & Intervalssweep-linesortingeventsgreedy - Arrays & HashingMediumAuto-gradedQuickest Way to Cover a Set Distance From Per-Interval Odometer Data
Find the top average speed over any time window covering exactly a target distance, given piecewise-constant speeds. Tests prefix sums, interpolation and binary search.
Arrays & Hashingprefix-sumsbinary-searchinterpolationtwo-pointers - BehavioralEasyModel answerNavigating a Disagreement With a Collaborator on a Research Project
Walk through a real disagreement with a collaborator on a data or ML research project, showing how you handled it, what resulted, and what you would change.
Behavioralbehavioralconflict-resolutioncollaborationresearch - System DesignMediumModel answerBuild a Reliable Delayed and Immediate Task Runner
Design a durable service that runs tasks right away or at a future time, and explain how it copes with crashes, retries, duplicates, and the limits of exactly-once execution.
System Designsystem-designjob-schedulerreliabilityretries - BehavioralMediumModel answerDeconstruct a Past Technical Project and Describe Your Improved Approach
Analyze a major technical project from your recent work experience, highlighting your explicit contributions, a pivotal trade-off, and how you would re-architect it today.
Behavioralbehavioraltechnical-leadershipretrospectivesystem-design - Greedy & IntervalsMediumAuto-gradedResolve Overlapping Text Edit Spans by Priority
Sweep over span boundaries with a heap to resolve overlapping inclusive edit spans using priority, original length, and input order, splitting losers into fragments.
Greedy & Intervalsintervalssweep-lineheaptie-breaking - Machine LearningMediumModel answerAI-Powered Weekly Shop: Pick a Shopper, Fix Their Pain, Ship a V1
Propose an AI feature strategy for an online grocery service: choose a shopper segment, find high-value pain points, prioritize a first release, and define success metrics and guardrails.
Machine Learningproduct-senseai-productrecommendationsprioritization - Math & Bit ManipulationMediumAuto-gradedChance That Two Random Draws Multiply to More Than a Half
Compute the exact probability that the product of two independent Uniform(0,1) values exceeds 1/2, by integrating over the region of the unit square above a hyperbola.
Math & Bit Manipulationprobabilityintegrationcontinuous-distributionsclosed-form - Trees & GraphsMediumAuto-gradedSpreading Pop Wave Across a Square Balloon Grid
Compute the earliest time each cell of a square grid is reached by a wave spreading from several seed cells, using multi-source breadth-first search.
Trees & Graphsbfsgridmulti-sourceshortest-path - SQL & DataMediumAuto-gradedPark Ticket Revenue and Pass-Holder Visit Averages
Aggregate ticket revenue and shares, then compute average distinct in-period visits per annual-pass period, including zero-visit passes, to project total entries.
SQL & Dataaggregationjoinsdate-range-filteringhash-map - Heaps, Sorting & SearchMediumAuto-gradedNewest-First Transaction Pager with Offset and Cursor Modes
Build a pager over transaction records that sorts newest-first with a deterministic tie-break and supports offset and keyset-cursor navigation with correct metadata.
Heaps, Sorting & Searchsortingpaginationkeyset-cursortie-breaking - System DesignHardModel answerArchitecting a Scalable, Politeness-Aware Web Crawler
Design a high-throughput, distributed web crawling system that manages per-domain rate limits, prevents duplicate fetches, and handles network resilience at scale.
System Designsystem-designdistributed-systemsconcurrencyqueues - Statistics & ExperimentsHardModel answerA/B Test Planning: Power, CUPED, Peeking, SRM and Causal Checks
Plan an online experiment end to end: sample size, runtime, variance reduction, sequential monitoring, cluster randomization, an SRM diagnosis, and a causal design for observational data.
Statistics & Experimentsab-testingpower-analysiscupedsequential-testing - BehavioralMediumModel answerExplain a System You Built and the Toughest Call You Made
Describe a production system you helped build, then dissect the hardest technical decision you personally owned: the options, trade-offs, rollout, results, and remaining debt.
Behavioralbehavioralarchitecturetrade-offsownership - Statistics & ExperimentsMediumModel answerEvaluating Short-Video Recommender Performance and Experiments
Evaluate success metrics, skewed metric distributions, metric trade-offs, and complete A/B testing methodologies for a short-video feed product launch.
Statistics & ExperimentsA/B TestingExperimentationMetricsRecommendation Systems - Heaps, Sorting & SearchMediumAuto-gradedFind Pair of Integers with Sum Nearest to Zero
Find a pair of distinct elements in an array whose sum has the smallest absolute value, breaking ties deterministically.
Heaps, Sorting & Searcharraysbinary-searchsortingtwo-pointers - System DesignEasyModel answerSpot the Wrong Claim About HTTP Status Code Classes
Pick the one false statement among four claims about HTTP status code families, then explain the client-versus-server split and why it matters for retries, alerting, and API design.
System Designhttpstatus-codesweb-protocolsapi-design - System DesignMediumModel answerSafety Subsystem for a Warehouse Robot Near People
Design a real-time perception and decision pipeline that keeps a mobile warehouse robot from hitting workers, covering fusion, a 50 ms latency budget, stop-versus-slow logic, and sensor failures.
System Designroboticssensor-fusionreal-time-systemssafety-critical - Math & Bit ManipulationHardAuto-gradedSubset Count Under Sum Constraint and Divisor Index
Find the maximum number of elements from an array whose sum is at most a given target n, and compute the k-th smallest positive divisor of a number N.
Math & Bit Manipulationmathsortinggreedyprefix-sum - Arrays & HashingMediumAuto-gradedPaint Stacked Boxes onto a Character Grid
Simulate painting bordered, filled boxes onto a fixed-size text grid, clipping to the grid while keeping border and interior status based on the full box.
Arrays & Hashingsimulation2d-gridclippingstrings - System DesignHardModel answerDesign a Container Assignment System with Compatibility Constraints
Design an automated container packing platform that optimizes cargo placement under weight, volume, and hazmat rules, supporting async runs, plan overrides, and strict determinism.
System Designsystem-designdistributed-systemsoptimizationconstraint-programming - Data Structure DesignMediumModel answerDesign a Spreadsheet Data Model with Dependent Cell Evaluation
Design the internal data structures and API for a spreadsheet engine supporting raw inputs, computed values, dependency tracking, and formula evaluation.
Data Structure DesignData Structure DesignGraphCachingDependency Tracking - Data Structure DesignEasyAuto-gradedSimulate a Forward-Only Row Cursor
Simulate a forward-only cursor over a list of rows, where a peek call is side-effect free and an advance call returns the next row or None at the end.
Data Structure Designsimulationiteratorcursordesign - System DesignMediumModel answerDesign a Real-Time Collaborative Task List
Architect a low-latency, real-time shared task list supporting concurrent edits, item reordering, explicit synchronous durability, and reconnection recovery.
System Designsystem-designwebsocketsreal-timeconcurrency - Math & Bit ManipulationEasyModel answerHandling IEEE 754 Floating-Point Limits in JavaScript
Understand JavaScript numeric edge cases, floating-point precision constraints, and how to safely implement custom checks without built-in helpers.
Math & Bit Manipulationjavascriptieee-754numeric-precisiontype-coercion - BehavioralMediumModel answerResponding to Work Status, Education Checks, and Multi-Level Alignment
Learn how to present U.S. work authorization, resolve resume discrepancies, align narratives across multiple role levels, and present minicase preparation plans during an HR screen.
BehavioralBehavioralRecruiter ScreenInterview StrategyCareer Leveling