practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6010 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.
- 6010
- Problems
- 2227
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 721–750 of 3783 results
- Statistics & ExperimentsMediumModel answerPooling Two Sensors and Correlation in a Lattice Walk
Find the minimum-variance linear unbiased way to pool readings from two sensors, then compute the correlation of coordinates, and of their absolute values, for a walk on the square lattice.
Statistics & ExperimentsestimationBLUEinverse-variance weightingrandom walk - Data Structure DesignMediumModel answerReal-Time Log Event Aggregation in React
Design and build a React component that ingests a real-time event stream, aggregates stats per category, handles out-of-order timestamps, and throttles re-renders for high throughput.
Data Structure Designreactdata-structuresstreamingperformance - System DesignHardModel answerDesign a Scalable Feature Toggling and Targeting Platform
Design a feature flag service enabling dynamic percentage rollouts, user targeted overrides, and ultra-low latency evaluation across distributed microservices.
System Designsystem-designdistributed-systemscachingfeature-flags - System DesignMediumModel answerDefend Database Schema, Index Strategy, and Concurrency Controls
Justify a database architecture by linking relational schema choices, targeted index designs, CAP theorem partition behaviors, and concurrency strategies to specific system access patterns.
System Designdatabase-designconcurrencyindexingtransactions - System DesignHardModel answerBilling-Grade Click Event Pipeline at 10M Events per Second
Design a pipeline that records ad clicks at extreme scale, drops repeat clicks within 30 seconds, serves windowed counts per ad, and never loses billable data.
System Designsystem-designstreamingkafkadeduplication - Arrays & HashingMediumModel answerDetect 8-Hour Cooling Streaks in a Flaky Forecast Feed
Build a service that checks a city's latitude, pulls a 72-hour forecast from an unreliable API with proper retries, and returns every 8-hour span of strictly falling, gapless hourly temperatures.
Arrays & Hashingsliding-windowretry-backoffapi-integrationerror-handling - Data Structure DesignEasyModel answerRecency-Evicting Store and Random Gift-Swap Pairing
Two short coding tasks: build a fixed-size store that drops the least recently touched key in constant time, and pair up participants from a CSV so nobody draws themselves.
Data Structure Designlru-cachehash-mapdoubly-linked-listderangement - System DesignHardModel answerCloud Network, Fleet Operations, Shared Files and SSO Blueprint
Plan a layered cloud network for 2,000 servers with IP sizing, unified Linux and Windows operations, shared file storage, and single sign-on across services.
System Designvpcnetworkingcidr-planningsystems-management - Statistics & ExperimentsMediumModel answerDebugging a Retention Drop in a Button-Color Experiment
A product test shows lower retention after a button turned red. Explain how to rule out assignment, balance, metric and statistical artifacts before blaming the color.
Statistics & Experimentsab-testingsample-ratio-mismatchcovariate-balancesimpsons-paradox - Data Structure DesignEasyModel answerShow How to Use a Move-Only Heap Buffer in C++, and Defend It
Read a move-only C++ class that owns a heap array, write a clean example program that uses it correctly, and explain the ownership, move, noexcept, explicit and const rules behind it.
Data Structure Designcppraiimove-semanticsrule-of-five - Arrays & HashingEasyModel answerClean and Reconcile Account Snapshots from a JSON Feed
Parse a JSON list of account records with exact decimal arithmetic, drop invalid rows, keep the newest record per account, and report a rounded total plus a per-account map.
Arrays & Hashingpythonjsondecimaldeduplication - Trees & GraphsMediumModel answerUnify Contact Profiles Linked by Common Email Addresses
Combine contact records that are directly or transitively linked by a shared email, outputting each person's name with a deduplicated, sorted email list.
Trees & Graphsunion-findgraphconnected-componentsdfs - System DesignHardModel answerVersioned Prompt and Config Control for a Production RAG Service
Design a system that versions LLM prompts, models, retrieval and decoding settings, rolls changes out gradually, traces every request to its exact config, and rolls back instantly.
System Designllm-opsragconfig-managementcanary-rollout - BehavioralHardModel answerMotivation, AI Risk Views and Career Move: Frontier Lab Narrative
Build a coherent, specific story covering why you want to join a frontier AI lab, your considered position on advanced AI and safety, and why you are leaving your current job.
Behavioralbehavioralmotivationai-safetyagi - System DesignHardModel answerDesign a Container Job Scheduler and Telemetry Platform
Design a distributed container execution system featuring resource-constrained scheduling, job lifecycle management, self-fencing node agents, and scalable metric ingestion.
System Designsystem-designkubernetesdistributed-systemsmetrics - Heaps, Sorting & SearchMediumModel answerFill Spare Slots and Sort One Buffer In Place
Combine two unsorted integer lists into the first, which has spare room at its end, so it ends up fully ascending, without using placeholder values to locate the data.
Heaps, Sorting & Searcharrayssortingin-placeheapsort - SQL & DataMediumModel answerRadiology Claims Spend Summary with Fiscal-Month Mapping in pandas
Clean a small claims CSV in pandas: sum spend per procedure group, compute each group's share of the total, and derive an October-based fiscal month without row loops.
SQL & Datapandasdata-cleaninggroupbydatetime - Statistics & ExperimentsMediumModel answerDiagnosing Profit Drop and Framing Executive Recommendations
Break down a sudden profit decline using structured financial decomposition, pinpoint root operational causes, and deliver a data-driven recommendation summary.
Statistics & Experimentsmetric decompositionroot cause analysisprofitabilitybusiness case - System DesignMediumModel answerPer-User Throttling for a Multiplayer Game API at Scale
Design a distributed service that caps each user's request volume per rolling minute across many app servers, rejecting excess calls with HTTP 429 while staying fast and available.
System Designrate-limitingdistributed-systemsredissliding-window - System DesignHardModel answerWarehouse Schema for a Consumer App's Engagement Events
Model a high-volume user event stream in a relational warehouse so engagement metrics are cheap to compute, handling duplicates, late data, backfills and incremental rollups.
System Designdata-modelingpartitioningevent-analyticslate-arriving-data - System DesignMediumModel answerBuilding an Async Prompt-to-Clip Rendering Platform on a GPU Fleet
Design a backend that accepts text prompts, renders short AI-generated videos on a pool of expensive GPUs, and survives bursts, worker crashes, and uneven hardware.
System Designasync-jobsgpu-schedulingjob-queueautoscaling - BehavioralMediumModel answerCareer Story, Project Deep Dive, and Three Behavioral Examples
Prepare a structured answer covering a concise career overview, one detailed project with decisions and results, and short stories on ownership, teamwork, and working through unclear goals.
Behavioralbehavioralresume-walkthroughstar-methodownership - BehavioralEasyModel answerWalking Through a Hard Project and Your AI Tooling Habits
A two-part behavioral prompt: narrate a technically difficult project you led, then explain how you use generative AI tools responsibly in your engineering work.
Behavioralbehavioralstar-methodproblem-solvinggenerative-ai - System DesignMediumModel answerDesign a Scalable Distributed Mass Email Delivery Engine
Architect an enterprise marketing dispatch platform supporting timezone-aware scheduling, template rendering, deduplication, fault-tolerant ESP dispatch, and tracking.
System Designsystem-designdistributed-systemsevent-drivenmessaging - Statistics & ExperimentsMediumModel answerComparing Low-Frequency Event Rates Under Unequal Sample Exposures
Evaluate how to compare sparse event rates across different exposure lengths, highlighting why fixed-rate assumptions fail and detailing exact two-sample inference techniques.
Statistics & Experimentspoisson-processhypothesis-testingconfidence-intervalsrare-events - System DesignMediumModel answerLaunch-Time Data Gatherer with Partial Failure Tolerance
Design an async service that merges four backend calls into one app-startup response, aborting on a critical failure and degrading gracefully on optional ones, within a fixed latency budget.
System Designasyncresiliencetimeoutsapi-aggregation - System DesignMediumModel answerArchitecting a Distributed Asynchronous Job Execution System
Design a scalable, fault-tolerant job scheduler that manages delayed execution, recurring tasks, worker leasing, and failure recovery with at-least-once delivery.
System Designsystem-designdistributed-systemsqueuestask-scheduler - Statistics & ExperimentsHardModel answerDiagnosing a Metric Drop After a Feature Launch
Investigate a sudden fall in a core engagement metric after a feature release: find the cause, size the impact, choose metrics, and design an experiment or quasi-experiment.
Statistics & Experimentsproduct-analyticsab-testingcausal-inferencemetrics - Statistics & ExperimentsHardModel answerMeasuring Lift from a Hand-Enrolled Sponsored Search Pilot
Evaluate a small hand-enrolled pilot of a new search ad format: define the estimand, reduce variance, test robustly on skewed revenue, check cannibalization, and explain why gains won't scale linearly.
Statistics & Experimentscausal-inferencevariance-reductionpermutation-testbootstrap - Data Structure DesignHardModel answerDesign an In-Memory Recipe Storage Engine
Design and implement an in-memory storage manager supporting CRUD operations, custom identifier parsing, case-insensitive uniqueness, and controlled renames.
Data Structure Designdesign-dsarraysstrings