practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5981 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.
- 5981
- Problems
- 2215
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 271–300 of 3766 results
- Data Structure DesignMediumModel answerBuild a Heap Allocator with Fit Policies and Safe Handles
Design a simulated memory manager over a fixed address range that supports two placement policies, splitting, merging of neighbors, and rejection of stale or forged release requests.
Data Structure Designmemory-allocatorlinked-listhash-mapcoalescing - BehavioralMediumModel answerFixing the Driver Licensing Office Visit: A Product Case
Diagnose why visits to a motor vehicle licensing office frustrate customers, pick one problem, design a fix with a user journey, and define metrics and a pilot to prove it works.
Behavioralproduct-senseproduct-designuser-journeymetrics - Machine LearningHardModel answerFive ML Fundamentals: Regression, Forests, Adam, Network Width
Answer five conceptual machine learning questions on regression assumptions, logistic loss, random forest feature sampling, Adam versus SGD, and narrow versus wide networks.
Machine Learninglinear-regressionlogistic-regressionrandom-forestadam - BehavioralMediumModel answerHandling Doubts About a Teammate's Reliability: A Behavioral Answer
Walk through a time you had reservations about a coworker's reliability, how you tested your suspicion, how you addressed it respectfully, and what changed as a result.
Behavioralbehavioraltrustconflict-resolutioncommunication - Statistics & ExperimentsMediumModel answerSeparating Investor Flows from Returns in a Market Shift
Build a framework to isolate true investor flows behind a recent asset-allocation shift, test two drivers with a time-series model, and address reverse causality and flow-data biases.
Statistics & Experimentseconometricstime-seriesfund-flowscausal-inference - System DesignMediumModel answerBuild a Distributed Crawler for Billions of Pages
Design a distributed system that discovers, fetches and stores web pages at scale while avoiding repeats, honoring site rules, throttling per host, and surviving failures.
System Designsystem-designweb-crawlerdistributed-systemsurl-frontier - Arrays & HashingHardModel answerDistinct Subset Sums With Negatives and Repeated Values
List every distinct multiset of array values, each index used at most once, that sums to a target when negatives, zeros and duplicates are present. Output must be sorted.
Arrays & Hashingbacktrackingpruningdeduplicationsubsets - Data Structure DesignMediumModel answerBuild a CSR Container and Multiply It by a Dense Vector
Design a class that compresses a mostly-zero integer matrix into three CSR arrays, then use it to compute a matrix-vector product in time proportional to the non-zero count.
Data Structure Designsparse-matrixcsrmatrix-vector-multiplicationdata-structure-design - Data Structure DesignMediumModel answerBuild a Polite Web Crawler with Letter-Coverage Ordering
Design and implement a rate-limited article crawler that visits pages with unseen first letters before switching to random order, and explain how you would use an AI assistant to build it.
Data Structure Designweb-crawlerrate-limitingfrontier-designai-pairing - System DesignMediumModel answerPooled Rideshare Dispatch: Matching, Booking and Live Tracking
Design a backend that pools riders into shared vehicles, matches within 2 seconds at 10k requests/s, prevents double-booking, and streams vehicle positions to riders.
System Designsystem-designgeospatialconcurrencystate-machine - Data Structure DesignHardModel answerBank Ledger with Holds, Expiring Transfers and Customer Merge
Build an in-memory bank that supports deposits, payments, two-step transfers with expiring holds, a top-activity ranking, and customer merges that leave history untouched.
Data Structure Designobject-oriented-designhash-mapheaplazy-expiry - Machine LearningMediumModel answerUnderstanding Layer Normalization, Residual Mechanics, and Alternatives
A deep dive into Layer Normalization in Transformers: mathematical formulation, Pre-LN vs Post-LN gradient stability, RMSNorm/BatchNorm comparisons, and inference memory trade-offs.
Machine Learninglayer-normalizationtransformersdeep-learninggradients - System DesignMediumModel answerBuild a Live-Now Highlights Feed for a Streaming Marketplace
Design the ML system around an existing scoring model to rank currently active livestreams in a shopping app, covering signals, retrieval, rules, serving, and verifying a stream is still on air.
System Designml-system-designrecommendationreal-time-featuresranking - System DesignMediumModel answerRuntime Polymorphism vs Static Polymorphism in C++
Describe how virtual functions are typically implemented in C++, then weigh them against CRTP-based static polymorphism and say when each design is the better fit.
System Designcppvirtual-functionscrtppolymorphism - Statistics & ExperimentsHardModel answerAds ranking test: lower CTR, higher revenue, ship or hold?
Decide whether to launch an ads-ranking change that lowers CTR but raises price and revenue. Build a decision rule, a per-1M-impression waterfall, diagnostics and a CFO slide.
Statistics & Experimentsab-testingadsmetric-decompositionsimpsons-paradox - BehavioralHardModel answerDescribe a Highly Ambiguous or High-Stakes Technical Challenge
Structure a response detailing a technically or operationally intricate challenge, highlighting trade-off evaluation, cross-functional alignment, and lasting impact.
Behavioralbehavioralleadershipdecision-makingcommunication - System DesignMediumModel answerDesigning an LLM-Driven Test Automation Platform for Pull Requests
Design a multi-agent system that turns specs and diffs into reviewed tests, runs them in isolation, repairs broken scripts, and separates script faults from real product regressions.
System Designllm-agentstest-automationsandboxingworkflow-orchestration - Machine LearningMediumModel answerDesign a Scalable Video Recommendation Architecture and Logging Engine
Architect a low-latency video feed and next-up system with focus on feature pipelines, stream joins, impression logging, and multi-objective ranking.
Machine Learningmachine-learningsystem-designrecommendation-systemslogging-infrastructure - System DesignHardModel answerDesigning a Production Stall Detector for Streaming Jobs
Design a distributed service that watches start, heartbeat and end messages per job and emits exactly one stall signal when a deadline passes, covering time semantics, sharding, recovery and testing.
System Designsystem-designstreamingtimersidempotency - System DesignMediumModel answerBuild a Durable, Replicated Key-Value Store Step by Step
Design a store with put, get and delete that starts as a single-node storage engine and grows into a partitioned, replicated cluster with defined consistency and failure handling.
System Designkey-value-storereplicationpartitioninglsm-tree - Statistics & ExperimentsMediumModel answerChoosing a Feed Ranking Variant From Negative Effect Intervals
Three ranking variants all lower engagement, each with a 95% confidence interval. Interpret the intervals, weigh downside risk against a tolerance, and recommend which variant to ship.
Statistics & Experimentsconfidence-intervalsab-testingpractical-significancerisk-assessment - System DesignHardModel answerLimited-Stock Flash Sale Platform with Zero Oversell
Design a platform that sells a fixed number of seats or units to millions of simultaneous buyers, with no oversell, no double charge, and graceful behavior under failure.
System Designsystem-designhigh-concurrencyredisidempotency - Data Structure DesignMediumModel answerBuild a Minesweeper Engine That Scales to Huge Sparse Grids
Design a Minesweeper class with board rendering and click handling via flood fill, then adapt it to enormous boards with few mines using lazy state and on-demand counting.
Data Structure Designdesignflood-fillbfssparse-data-structures - Machine LearningMediumModel answerScreening Pipeline for Abusive Jobs and Memory Crashes
Design an ML-backed gate for a shared compute platform that flags abusive submitted code or text and predicts memory-exhaustion crashes, with low latency, high precision, and drift monitoring.
Machine Learningml-system-designcontent-moderationresource-forecastingadversarial-robustness - BehavioralEasyModel answerCrafting Your PM Opening Pitch for a Crypto Exchange
Prepare three short, honest answers for a PM screen: your background, why a crypto financial platform, and your five-year growth path, with structure, sample wording and pitfalls.
Behavioralbehavioralproduct-managementhr-screencareer-narrative - Machine LearningMediumModel answerSpeeding Up a 175B-Parameter LLM Serving Cluster
Diagnose and fix low GPU utilization and high latency in a large transformer serving fleet, covering KV cache memory, compute efficiency and multi-node communication.
Machine Learningllm-servingkv-cachequantizationtensor-parallelism - Machine LearningHardModel answerBuilding a Low-Latency Ad Ranking Pipeline with ML
Design an end-to-end ML system that picks personalized ads for millions of users within a tight latency budget, covering data, models, exploration, evaluation and scaling.
Machine Learningctr-predictionrecommendationbanditscounterfactual-evaluation - BehavioralMediumModel answerScaling Risk Two Weeks Before a Fixed Launch Date
Describe a time you balanced a hard business deadline against a known scalability risk, covering risk analysis, team alignment, leadership persuasion and post-launch follow-through.
Behavioralbehavioralleadershiptrade-offstechnical-debt - System DesignMediumModel answerBuild a Large-Scale Live Video Broadcasting Service
Design a platform where creators broadcast live video to millions of viewers with low delay, adaptive quality, real-time chat, stream discovery, and replay after the stream ends.
System Designsystem-designlive-streamingcdnhls - BehavioralMediumModel answerWalk Through a Large Infrastructure Project You Drove
Describe a multi-team infrastructure project you owned from start to finish, covering your technical direction, stakeholder buy-in, risk and incident handling, trade-offs, and measured results.
Behavioralbehavioralleadershipinfrastructurestakeholder-management