practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6069 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.
- 6069
- Problems
- 2250
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 2071–2100 of 3819 results
- Statistics & ExperimentsMediumModel answerOffline vs. Online Model Evaluation and Rare-Event Diagnostics
Analyze why a model shows offline gains but no live improvement, using paired scenario replay and diagnosing power, exposure, and distribution drift issues.
Statistics & Experimentsexperimentationmodel-evaluationrare-eventsstatistical-power - BehavioralMediumModel answerWalking Through a Hard Project You Owned
Pick one recent, genuinely difficult project and narrate it in a way that shows your decisions, trade-offs, and measurable impact.
Behavioralstar-methodownershiptrade-offsimpact - BehavioralMediumModel answerProduct Experience, Taste, and Metrics Framework
Discuss a product you built and its metrics, products you find well-designed, and how you'd improve a physical product with measurable success criteria.
Behavioralproduct-managementmetricsuser-experienceexperimentation - BehavioralMediumModel answerHandling a Critical Production Incident You Caused
Navigate a severe production latency incident triggered by your own deployment, balancing rapid mitigation, stakeholder communication, and systematic prevention.
Behavioralincident-responsecommunicationaccountabilityleadership - System DesignHardModel answerDesign a Distributed Usage Enforcement System
Design a quota enforcement service that handles millions of checks per second across many tenants, covering APIs, consistency trade-offs, hot-key handling, and billing accuracy.
System Designrate-limitingdistributed-systemsconsistencysharding - Machine LearningMediumModel answerML Infrastructure for Real-Time Engagement Prediction
Build an end-to-end platform for predicting user engagement likelihood, covering feature pipelines, online/offline stores, training workflows, and high-throughput inference.
Machine Learningml-systemsfeature-engineeringinference-architectureml-ops - Statistics & ExperimentsMediumModel answerCarousel Above the Feed: Metrics, Instrumentation, and Test Design
Design the metric hierarchy, logging, and experiment for a new top-of-feed carousel, then explain how to diagnose an overall CTR decline.
Statistics & Experimentsab-testingmetric-designinstrumentationproduct-analytics - Stacks & QueuesMediumModel answerCompute Per-Function Runtimes from a Profiler Event Log
Parse a time-ordered sequence of START/END events, compute inclusive and exclusive runtimes per function, and identify the most expensive function by self-time.
Stacks & Queuesstacksimulationprofilingcall-stack - System DesignMediumModel answerStreaming Home Feed: Visible-Grid Deduplication
Design the algorithm and surrounding system that ensures every show tile visible on a streaming home page appears at most once, across all rows and columns.
System Designdeduplicationpage-assemblygreedysystem-design - Trees & GraphsMediumModel answerCurrency Conversion Rates via Graph Traversal
Build a weighted graph from currency pairs and answer conversion queries, then extend to directional rates and arbitrage detection.
Trees & Graphsgraph-traversalshortest-pathbellman-fordfloating-point - BehavioralMediumModel answerShipping AI to Real Users: A Risk-First Decision Framework
Walk through a high-stakes decision to ship, modify, or hold an AI feature for end users, balancing error tolerance, segment risk, and measurable outcomes.
BehavioralAI/ML product decisionsrisk assessmentcustomer empathyhuman-in-the-loop - System DesignMediumModel answerDesigning a grounded document Q&A platform with citations and access control
Design an enterprise RAG system over millions of private documents: hybrid retrieval, reranking, cited generation, strict tenant/ACL isolation, and a 60-second freshness budget.
System Designragretrievalsystem-designaccess-control - Data Structure DesignHardModel answerThread-Safe Queue with Lease-Based Message Visibility
Design an in-memory queue that delivers messages with time-limited leases, validates acknowledgments against current lease tokens, and rejects duplicate entries.
Data Structure Designconcurrencyqueuestate-machineidempotency - Arrays & HashingMediumModel answerTest Plan for Straight-Line vs Path Word Search
Build a TDD plan, concrete cases, property invariants and stress tests for two grid word-search functions that must disagree on key inputs.
Arrays & Hashingtestingtddgridsbacktracking - Data Structure DesignMediumModel answerClassic Data-Structure Drills: Cache, Trie, Heaps, Graphs
Work through fifteen core algorithm patterns—LRU cache, trie, two-pointers, sliding window, topological sort, and more—naming invariants before coding.
Data Structure Designhash-tablestwo-pointerssliding-windowgraphs - BehavioralMediumModel answerTrimming a Feature to Ship the Core Problem First
Explain a real time you narrowed scope so a minimal version reached customers sooner, and how you and product rank what ships first.
Behavioralscope-cuttingproduct-collaborationprioritizationmvp - System DesignHardModel answerCompiler Instruction Scheduling for a Multi-Issue VLIW Processor
Design an instruction scheduler for a 4-issue VLIW core with mixed-latency functional units, covering hazard detection, register pressure, loop pipelining, and latency sensitivity.
System Designcompiler-backendinstruction-schedulingvliwpipeline-hazards - Arrays & HashingMediumModel answerSplitting Strings and Batching Equal-Cost Item Pairs
Count splits where prefix and suffix share more than k letters, then find the target cost that yields the most single-or-pair packages.
Arrays & Hashingcountingfrequency-arrayshash-mapcombinatorics - System DesignMediumModel answerDesign a Checkout-to-PSP Payment Gateway
Design a fault-tolerant intermediary service that processes charge requests from sellers, coordinates with an external payment provider, and maintains a consistent transaction ledger.
System Designdistributed-systemsidempotencyfault-tolerancefinancial-systems - BehavioralMediumModel answerWalk Me Through a Hard Technical Trade-off You Owned
Pick a project you know inside-out and defend a technical decision by comparing alternatives, detailing your implementation, and showing how you validated the outcome.
Behavioraltechnical decision-makingtrade-offsownershipimplementation depth - BehavioralHardModel answerDescribe a High-Stakes Technical Challenge You Resolved
Walk through a difficult engineering problem you owned, explaining diagnosis, alternatives, trade-offs, execution, and measurable impact.
Behavioralbehavioralleadershipproblem-solving - Arrays & HashingMediumModel answerColumn-Normalize a Random Binary Matrix
Generate an n×n matrix of fair coin-flip entries and rescale each column so its values sum to 1, in O(n²) time.
Arrays & Hashingnumpymatrixnormalizationvectorization - SQL & DataMediumModel answerUser-Week Panel Construction and DiD Analysis in SQL
Build a clean user-week panel dataset for difference-in-differences analysis, handling treatment timing, household spillovers, and staggered adoption.
SQL & Datadifference-in-differencespanel-datacausal-inferencesql-aggregation - System DesignMediumModel answerDesign a Time-Tracking and Wage Calculation Backend
Build a backend that records employee time punches, computes hours worked per pay cycle, calculates wages, and handles burst traffic and external data feeds.
System Designbackendscalabilitydata-modelingapi-design - Data Structure DesignMediumModel answerBuilding an In-Memory Recipe Store with Search and Versioning
Design an in-memory recipe system with CRUD, ingredient lookup, per-user attribution with sorting, and immutable version history that survives deletes.
Data Structure Designobject-oriented-designin-memory-storeindexingaudit-history - Arrays & HashingMediumModel answerCircular Token Distribution on a Ring of Nodes
Distribute k tokens clockwise across n nodes in a ring starting at a given index, returning each node's final count without simulating one token at a time.
Arrays & Hashingarraysmathmodulo arithmetic - Data Structure DesignHardModel answerIn-Memory Ledger with Timed Transfers and Account Consolidation
Design an in-memory financial ledger supporting deposits, transfers, scheduled future payments, top-K spending rankings, and account merges with pending-payment reconciliation.
Data Structure Designheaphash-mapschedulingunion-find - Data Structure DesignMediumModel answerDesign an In-Memory Ledger with Transfers and Activity Ranking
Build an in-memory account ledger in stages—create/deposit, transfer, top-N by activity—plus a command-string test harness with clear failure semantics.
Data Structure Designobject-oriented-designhash-mapheaptest-harness - Machine LearningHardModel answerSocial Media Sentiment as a Stock Return Signal: End-to-End ML Design
Design a machine learning pipeline that extracts predictive signals from a high-volume social media stream and combines them with market data to forecast near-term stock returns.
Machine Learningnlptime-seriesfeature-engineeringsignal-validation - BehavioralMediumModel answerGrowing Independence Through Adaptive Mentorship
Explain how you helped someone gain autonomy by identifying blockers, adjusting your support style, and transferring ownership of real responsibilities.
Behavioralmentorshipleadershipcommunication