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
- 273
- Added today
Showing 3811–3840 of 6093 results
- System DesignHardModel answerThread-Safe Tag Index and Online Bookstore Architecture
Design a concurrent in-memory tagging system with correct multi-index atomicity, then architect a scalable bookstore handling high-read browsing and consistent purchases.
System Designconcurrencyobject-oriented-designdistributed-systems - System DesignHardModel answerInvestigating and Mitigating Production Latency Spikes
Walk through triaging a production alert for elevated service latency, from confirming impact to investigating root causes and restoring service.
System Designobservabilityincident-responseperformanceproduction - Statistics & ExperimentsMediumModel answerInvestigating a Drop in New User Activation
A key activation metric has fallen; walk through your diagnostic approach, data checks, hypotheses, and segmentation strategy.
Statistics & Experimentsmetricsroot-cause-analysisexperimentation - Statistics & ExperimentsHardModel answerEvaluating a New Ad Ranking Algorithm End to End
Design metrics, randomization and rollout for a new ad ranker, plus fallbacks when a clean 50/50 test is impossible.
Statistics & Experimentsexperimentationcausal-inferencea-b-testingmarketplace-interference - Machine LearningHardModel answerDesign a Personalized Food Delivery Home Feed Ranker
Design an end-to-end ML system that ranks restaurants on a food delivery app's home screen to maximize orders and long-term user satisfaction.
Machine Learningrecommendation systemsrankingtwo-towermulti-task learning - System DesignMediumModel answerQuota & Rate-Limit System for a Mobile AI App
Design the client-server quota enforcement system for a mobile AI assistant, covering API contract, Android architecture, and multi-device synchronization.
System Designrate-limitingandroidmobilereal-time - Arrays & HashingHardModel answerFewest Swaps to Bring an Array with Duplicates into Sorted Order
Given an integer array that may contain duplicates, find the minimum number of arbitrary index swaps needed to sort it in non-decreasing order.
Arrays & Hashingsortingpermutationscycle-detectiongreedy - Math & Bit ManipulationMediumModel answerBounded Robot Path Under Infinite Command Repeats
Simulate one pass of a compressed command string, then decide whether infinitely repeating it keeps the robot inside a finite region, even with obstacles.
Math & Bit Manipulationsimulationcycle-detectiongeometrystate-machine - Statistics & ExperimentsMediumModel answerDesign an Experiment for a Cargo-Bike Last-Mile Delivery Program
Design an A/B test for a bike-only dispatch pilot, covering metric selection, randomization unit trade-offs, and how shared courier supply creates interference.
Statistics & Experimentsexperimentationmarketplacea-b-testingcausal-inference - Arrays & HashingMediumModel answerPeak Average Score: Overflow, Large Files, and Java Concurrency
Aggregate student scores to find the highest per-student average, then extend the solution for huge files, negative values, integer overflow, and multithreaded processing.
Arrays & Hashingjavaconcurrencyaggregationinteger-overflow - Machine LearningHardModel answerDesigning a Credit Offer Recommendation Engine
Design an end-to-end ML system that serves personalized financial product offers to millions of users, handling sparse delayed conversion signals and strict latency requirements.
Machine Learningrecommendation systemsfeature engineeringdelayed feedbackmulti-task learning - System DesignMediumModel answerTime-Aware Airport Activity Recommender System
Design a real-time system that suggests safe activities during airport layovers while guaranteeing travelers never miss their connecting flights.
System Designreal-time systemsrecommendation systemsmobile architecturerisk management - System DesignHardModel answerBackend Architecture for a Scalable Group Messaging Platform
Design the server-side core of an enterprise chat product: APIs, storage, idempotent and ordered message delivery, versioned membership access control, and real-time fan-out at scale.
System Designmessagingidempotencystoragereal-time-delivery - BehavioralMediumModel answerNavigating Cross-Functional Disagreement as a Game PM
Show how you diagnose partner objections, realign on shared player and business goals, and drive a scoped decision when a proposal meets resistance.
Behavioralcross-functional-collaborationconflict-resolutionproduct-decisionsgame-product - Dynamic ProgrammingMediumAuto-gradedMinimize Payment Transfers to Balance Group Accounts
Tests backtracking with memoization to find the smallest number of payments needed to settle net balances across multiple participants.
Dynamic Programmingbacktrackingmemoizationcombinatorial-search - SQL & DataMediumAuto-gradedDaily Campaign Performance Summary Over a Rolling Window
Tests conditional aggregation across multiple related tables, time-window filtering, fan-out avoidance, and safe division when computing per-day engagement rates.
SQL & Dataaggregationjoindata-manipulation - Data Structure DesignMediumAuto-gradedScore Tracker with Ranking and Top-K Queries
Tests the ability to maintain ordered scores with efficient updates and rank lookups using augmented balanced search trees.
Data Structure Designbinary-search-treeorder-statisticsdata-structures - Data Structure DesignMediumAuto-gradedVersioned Key-Value Log with Point-in-Time Reads
Tests per-key version tracking and efficient predecessor search to retrieve the most recent value written at or before any queried timestamp.
Data Structure Designbinary searchhash mapversioning - System DesignMediumModel answerBuild a Policy-Driven Expense Approval Engine
Design an extensible rule evaluation system that validates expense reports against configurable business policies and returns a structured approval decision.
System Designobject-oriented designextensibilitystrategy patternpython - Statistics & ExperimentsHardModel answerTesting Product Changes in a Multi-Sided Marketplace
Design A/B tests for feature launches in a delivery marketplace, addressing unit selection, metric definition, interference, and trade-offs across users, merchants, and revenue.
Statistics & Experimentsexperimentationcausal-inferencemarketplaceproduct-metrics - System DesignMediumModel answerObject-Oriented Design of a Minesweeper Game with Per-Cell Mine Probabilities
Design an OO Minesweeper where each cell carries an independent mine probability, covering initialization, class model, click/print APIs, state transitions, and testability.
System Designobject-oriented-designstate-machineflood-filldependency-injection - BehavioralMediumModel answerStructuring Behavioral Answers for Technical Program Manager Roles
Prepare cohesive responses to common TPM behavioral prompts: intro, project history, motivation, challenges, and missed deadlines.
Behavioralbehavioraltechnical-program-managerSTAR-methodleadership - Trees & GraphsHardModel answerCheck Whether a Node Sequence Is a Valid BFS on a Tree
Given an undirected tree and multiple permutations of its nodes, determine for each permutation whether it could be the dequeue order of some BFS starting at its first element.
Trees & GraphsBFStreessimulationhashing - Dynamic ProgrammingHardAuto-gradedExpected Steps to Deplete Whole Pills from a Random Draw Process
Tests modeling a stochastic process as a Markov chain and solving it with dynamic programming using conditional expectation.
Dynamic Programmingprobabilityexpectationmarkov-chainrecurrence - System DesignHardModel answerDesign Data Models and Pipelines for a Robotaxi Fleet
Design the analytics data model for a remote vehicle assistance function and an end-to-end pipeline for measuring autonomous fleet stability.
System Designdata modelingpipelinestelemetryreal-time systems - System DesignHardModel answerDesign a Link-Shortening Service with Click Tracking
Design a distributed URL shortener handling billions of daily redirects with sub-50ms latency and decoupled, accurate click counting.
System Designdistributed-systemscachingstream-processing - Data Structure DesignHardModel answerMutable Integer Set with Freeze-Frame Iterators
Design an integer set supporting O(1) add/remove/contains plus snapshot iterators that capture insertion-order state at creation time without copying.
Data Structure Designsnapshotsiteratorsappend-only logversioning - Data Structure DesignMediumModel answerBuild a Path-Addressed Tree Store and a Bounded Ring Buffer
Design an in-memory hierarchical path store with strict parent-existence errors, plus a fixed-capacity FIFO queue where every operation is constant time.
Data Structure Designtriehash-mapcircular-bufferapi-design - Arrays & HashingMediumModel answerSimulating Motion Under Time-Varying Visibility Constraints
Determine how many entities moving rightward on a line reach a target position when their movement is blocked by a direction-switching observer.
Arrays & Hashingsimulationbinary-searchprefix-sum - Trees & GraphsMediumModel answerHeight-Balanced Nodes in Heap-Array Trees
Traverse a binary tree stored in heap-index layout to find every node whose subtree is height-balanced, returning each with its tree level.
Trees & Graphsbinary-treepost-orderheap-layoutbottom-up