practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5966 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.
- 5966
- Problems
- 2209
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 61–90 of 5966 results
- Statistics & ExperimentsHardModel answerPower, Guardrails and Ramp Plan for a New Feed Ranker Test
Plan an A/B test for a new feed ranking model: size it for a small CTR lift, add guardrails and sequential stopping, use CUPED, control interference, and define the ramp decision.
Statistics & Experimentsab-testingpower-analysiscupedsequential-testing - Data Structure DesignMediumAuto-gradedSmallest Free Label per Category: Batch Simulation
Simulate a sequence of allocate and release operations on independent categories, always handing out the smallest free positive integer, using a counter plus a min-heap per category.
Data Structure Designheaphash-mapsimulationdesign - System DesignMediumModel answerServing Daily-Changing Prices to a High-Traffic Launch Page
Design the API and serving layer for product prices that change at most once a day but are read at very high rates, with atomic publishing, caching, rollback and checkout correctness.
System Designcachingcdnversioningread-heavy - Statistics & ExperimentsHardModel answerDesigning a Rush-Hour Ride Discount Test and Targeting Plan
Choose which riders should get a rush-hour ride discount, design an experiment that measures true incremental margin, and define metrics that expose wasted subsidies.
Statistics & Experimentsab-testinguplift-modelingmarketplace-interferenceincrementality - Data Structure DesignMediumAuto-gradedDesign an In-Memory Key-Value Engine with Transactions
Implement an in-memory key-value database supporting frequency counting and nested transaction rollbacks.
Data Structure Designhash-tablestackdesigndata-structures - Statistics & ExperimentsHardModel answerFeed Personalization Algorithm A/B Testing Framework
Design an end-to-end A/B test framework to evaluate a new feed recommendation algorithm, addressing metrics, network spillover, novelty decay, and statistical validation.
Statistics & ExperimentsAB TestingExperimentationCausal InferenceNetwork Effects - Data Structure DesignEasyAuto-gradedSimulate a Time-To-Live (TTL) Key-Value Store
Process a series of operations on an in-memory key-value store with fixed time-to-live expiration dynamics.
Data Structure Designdesign-dshash-table - Statistics & ExperimentsMediumModel answerPropensity Score Matching for Non-Randomized Feature Opt-Ins
Learn how to apply propensity score matching to non-randomized feature opt-in data, covering causal assumptions, propensity score estimation, balance diagnostics, and alternative estimators.
Statistics & Experimentscausal inferencepropensity score matchingobservational dataexperimentation - BehavioralMediumModel answerWalk Through a Technical Decision You Drove as Project Lead
Present a real project you led, focusing on one key technical decision, the alternatives you weighed, how you shaped execution, and which outcomes you can honestly back up.
Behavioralbehavioralleadershiptechnical-tradeoffsownership - System DesignHardModel answerHost Snapshot Threat Scoring and Automated Containment Pipeline
Design a cloud pipeline that scores host snapshots as normal or abnormal, applies safe automated containment or alerts, and exposes warning history to tenants.
System Designml-system-designanomaly-detectionmulti-tenancyevent-driven - Heaps, Sorting & SearchMediumAuto-gradedPodium Finish: Pick the Two Best Clubs in a League Table
Rank teams with a multi-level tiebreak (points, goal difference, goals scored, index) and return the best two indices, testing composite keys and efficient selection.
Heaps, Sorting & Searchsortingtuple-keystie-breakingselection - Data Structure DesignHardModel answerBuild a Thread-Safe Dual-Resource Allocator
Design a concurrency controller that manages exclusive access to two distinct targets while preventing deadlocks and invalid release calls.
Data Structure Designconcurrencymultithreadinglockssynchronization - Data Structure DesignMediumModel answerDebugging a LinkedHashMap-Based Eviction Cache in Java
Review a Java cache built on LinkedHashMap that evicts the wrong entries, find each defect, write minimal failing tests, and produce a corrected version.
Data Structure Designlru-cachejavalinkedhashmapdebugging - System DesignMediumModel answerBuild a Loyalty Points Engine with an Immutable Ledger
Design a service that turns settled payments into loyalty points using versioned earning rules, an append-only ledger, safe redemptions, and daily reconciliation.
System Designsystem-designledgeridempotencyrules-engine - Arrays & HashingMediumAuto-gradedLeave-One-Out Products Without Using Division
Build an array where each entry is the product of all other entries, without division, in linear time, using prefix and suffix running products.
Arrays & Hashingprefix-productsuffix-productarrayin-place - Stacks & QueuesEasyAuto-gradedTyped Value Stack Interpreter with Mixed Addition
Simulate a stack machine whose values are tagged ints or strings, where ADD sums two ints or concatenates otherwise, and return the printed lines.
Stacks & Queuesstacksimulationstringstagged-union - Trees & GraphsMediumAuto-gradedMinimum Hops Between Two Tasks in a Dependency Graph
Find the fewest directed edges from a start node to a goal node in an acyclic graph, returning 0 for identical nodes and -1 when unreachable; tests BFS on unit-weight graphs.
Trees & Graphsgraphbfsshortest-pathdag - Data Structure DesignEasyAuto-gradedSimulate Driver Availability and Task Allocation
Simulate driver registration and dispatch operations using standard queue processing and state tracking.
Data Structure Designdata-structuresqueueshash-tablesimulation - System DesignMediumModel answerTriage a Cloud-Hosted Site Stuck on a Spinner for Most Users
Explain how you would systematically investigate a cloud-hosted web app where most visitors see an endless loading indicator while a minority get the full page.
System Designdebuggingincident-responsegoogle-cloudfrontend - Machine LearningEasyModel answerEvaluating a Text Classifier and Retriever: Metrics and Reporting
Work through agreement, classification and ranking metrics, TF-IDF, reproducibility and model comparison for a document classification and search system, showing the arithmetic.
Machine Learningevaluation-metricsnlprankingcohens-kappa - Stacks & QueuesMediumAuto-gradedFixed-Width Window Folds with Add, Multiply, or AND
Compute the fold of every length-k window of an array under a named associative operation, ideally in linear time without relying on inverse operations.
Stacks & Queuessliding-windowtwo-stacksassociative-operationqueue - Data Structure DesignMediumAuto-gradedCompute Compressed Vector Inner Product
Process dynamic creation of compressed vectors and compute inner products using sparse representations.
Data Structure Designarraysdesign-dshash-table - System DesignHardModel answerDesign a Grounded Document Q&A Assistant on a Hosted LLM API
Build a small retrieval-augmented chat tool with streaming answers, short memory, resilient API calls and tests, then justify the key design trade-offs.
System Designragllmembeddingsvector-search - System DesignMediumModel answerArchitect a Real-Time Direct Messaging Backend
Design a backend for private two-person messaging that stays durable, ordered and deduplicated, with online and offline delivery, presence, and a justified split between Kafka and Redis.
System Designsystem-designwebsocketkafkaredis - Greedy & IntervalsEasyAuto-gradedSelect Best Single Task Type
Determine the task type index that maximizes total revenue within a given time budget using floor division and custom tie-breaking rules.
Greedy & Intervalsgreedyarraysmath - System DesignMediumModel answerJava Dispatch Rules and Choosing Between Monolith and Microservices
Explain how Java decides which method runs (overriding versus overloading) and weigh a single deployable application against a set of independent services, including how to migrate.
System Designjavapolymorphismdynamic-dispatchmicroservices - Math & Bit ManipulationEasyAuto-gradedCircle Pair Relationship Labeler
Label each pair of circles by their geometric relationship using exact integer squared-distance comparisons and a strict rule order, including degenerate radius-zero cases.
Math & Bit Manipulationgeometryinteger-arithmeticcase-analysissimulation - System DesignMediumModel answerStreaming Design for Cleaning and Near-Duplicate Removal of Web Crawl Text
Design a horizontally scalable streaming system that extracts text from 100TB of crawled HTML, filters it, removes near-duplicates and reports live metrics, all in one pass.
System Designsystem-designstreamingminhashlsh - Data Structure DesignMediumAuto-gradedDesign a Recency-Tracking Key-Value Store
Simulate operations on a custom key-value map that efficiently queries the most recently updated active entry.
Data Structure Designdesign-dslinked-listsarrays - Arrays & HashingMediumAuto-gradedPer-Move Win Tracker for a Square Noughts-and-Crosses Grid
Replay a sequence of marks on an n-by-n grid and report after each one whether the mover has completed a row, column or diagonal, using per-line counters.
Arrays & Hashingsimulationcountingmatrixdiagonals