practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6041 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.
- 6041
- Problems
- 2237
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 1231–1260 of 3804 results
- Statistics & ExperimentsMediumModel answerMatching Test Errors to Classifier Metrics: FP, FN, Precision, Recall
Link false-alarm and missed-detection errors in hypothesis tests to classifier metrics, explain why precision depends on prevalence, and judge which error hurts more in practice.
Statistics & Experimentshypothesis-testingtype-i-errortype-ii-errorprecision-recall - Data Structure DesignMediumModel answerBuild an In-Memory Playlist Engine with a Three-Slot Favorites Set
Design a thread-safe in-memory audio player with a queue, history, and a favorites list capped at three that rejects overflow deterministically rather than evicting.
Data Structure Designdesigndequehash-mapconcurrency - Math & Bit ManipulationEasyModel answerCircle Point Generation, Strict Monotonic Run, and Histogram Interpolation
Solve three foundational tasks: uniform random sampling within a disk, tracking the longest strictly increasing contiguous array, and computing bucketed percentiles.
Math & Bit Manipulationsamplingarraysinterpolationmath - Data Structure DesignMediumModel answerBuild a Plain-Text Notes REST API and Black-Box Test Plan
Design a small CRUD HTTP service that accepts raw text bodies but replies in JSON, then explain how to test an unseen function from its specification alone.
Data Structure Designrest-apihttp-status-codesunit-testingflask - BehavioralMediumModel answerDefending a Build vs. Buy Architecture Decision
Articulate the strategic justification, trade-offs, and cost-benefit analysis for choosing to develop an internal system over purchasing a standard commercial alternative.
BehavioralBehavioralArchitectureEngineering StrategyLeadership - Statistics & ExperimentsMediumModel answerMeasuring Flight Lateness and Proving a Fix Actually Works
Define lateness metrics, model how often and how badly flights run late, and choose a valid design and inference method to show an operational change reduced delays.
Statistics & Experimentshypothesis-testingcausal-inferencedifference-in-differencesregression - Data Structure DesignMediumModel answerEfficient Large File Tailer and Sensor Heartbeat Monitor
Read the last N lines of a huge file using reverse chunk seeking, and track active devices using an OrderedDict for fast sliding window health queries.
Data Structure Designfile-iosliding-windowordered-dictsystem-design-ds - BehavioralMediumModel answerResolving Critical Production Vulnerabilities Prior to Launch
Evaluate and prioritize strategy choices for managing late-stage software defects, balancing system health, delivery timelines, and stakeholder trust.
Behavioralbehavioralleadershiptradeoffsstakeholder-management - Math & Bit ManipulationMediumModel answerCheapest Cart Total with Percent-Off and Buy-X-Get-Y Promotions
Define pricing rules for percent-off and buy-X-get-Y promotions, then build an algorithm that returns the lowest legal total for a cart, covering stacking, repeats, and rounding.
Math & Bit Manipulationpricingdiscountsrequirements-clarificationgreedy - SQL & DataHardModel answerDetect Suspicious Annotators in Data Pipelines
Process crowd-sourced label data to compute consensus metrics and flag underperforming annotators at scale.
SQL & Datapandasdata-cleaningdata-analysisgroup-by - Machine LearningHardModel answerDesign a Multimodal Video Search Engine
Design a scalable text-to-video and video-to-video retrieval architecture handling billions of clips, detailing modeling choices, vector indexing, serving pipelines, and evaluation strategy.
Machine Learningsystem-designinformation-retrievalvector-searchdeep-learning - Statistics & ExperimentsHardModel answerDesigning Graph-Based Cluster Experiments for Social Features
Learn how to design cluster-randomized experiments under network interference, handle edge spillover, choose non-gameable metrics, and compute variance design effects.
Statistics & Experimentsexperimentationcausal inferencecluster randomizationnetwork interference - System DesignMediumModel answerDesign a Telemetry and Log Indexing Engine for Autonomous Vehicles
Architect a scalable telemetry storage and indexing platform to capture, store, and query petabytes of high-throughput sensor logs efficiently.
System Designsystem-designdistributed-systemsindexingstorage-tiering - BehavioralMediumModel answerRisks and Rollout Plan for a Cyclist Courier Pilot
Assess the operational, safety, economic and regulatory risks of adding bicycle couriers to a food-delivery platform, then propose mitigations and a measured rollout.
Behavioralproduct-strategyrisk-assessmentmarketplaceoperations - BehavioralMediumModel answerWalking Through Your Hardest Build and Where You Want to Grow
Describe a technically demanding project you personally drove, explain the key trade-offs and their effects, then connect your next-step growth goals to the team you are joining.
Behavioralbehavioralownershiptrade-offsstar-method - BehavioralEasyModel answerNavigating ML Infrastructure and Data Science Collaboration Scenarios
A guide on handling three ML platform challenges: accelerating training loops, troubleshooting production performance drops, and navigating governance bottlenecks collaboratively.
Behavioralmachine-learningbehavioralstakeholder-managementmlops - System DesignMediumModel answerC++ Semantics and GPU Memory Trade-offs: Four Short Answers
Answer four fundamentals questions: enum and struct behavior in C++, macros versus inline functions, GPU matrix-add kernel design, and optimizing uniform or repeated read-only values.
System Designcppgpucudamemory-coalescing - 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 - 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 - 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 - 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 - 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 - 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