practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6040 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.
- 6040
- Problems
- 2237
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 2581–2610 of 3803 results
- Trees & GraphsMediumModel answerClosest Shared Ancestor for a Group of Org-Chart Nodes
Build a validated org-chart tree from manager–report pairs and find the deepest node that is an ancestor of every node in a given set.
Trees & Graphslowest-common-ancestorbinary-liftingtree-traversalinput-validation - System DesignHardModel answerDesign a Remote Cloud Development Environment Service
Design a scalable platform that provisions on-demand remote dev machines accessible via browser, SSH, or IDE tunnel, covering lifecycle, isolation, storage, multi-tenancy, and observability.
System Designdistributed-systemsorchestrationmulti-tenancystorage - System DesignHardModel answerStreaming, Stop Signals, and Safe Recovery in an LLM Agent Pipeline
Design end-to-end token streaming, user-initiated cancellation, and failure recovery for a multi-turn agent system where tools may have irreversible side effects.
System Designstreamingcancellationfault-toleranceagents - Statistics & ExperimentsEasyModel answerBreak-Even Analysis for Marketing Partnership Investments
Determine the customer acquisition volumes needed to justify fixed and variable marketing costs against profitability targets.
Statistics & Experimentsbreak-evenunit-economicsprofitabilitymarketing-roi - BehavioralHardModel answerRecover from a Silent Registration Pipeline Failure
Design a prevention and mitigation plan for a premium registration pipeline that silently dropped thousands of sign-ups over multiple months without any alert firing.
Behavioralincident responsedata reliabilitySLIs/SLOspipeline monitoring - Statistics & ExperimentsMediumModel answerSelecting Visualizations for Data Analysis
Discuss which charts work best for different analytical goals, data types, and relationships during exploratory analysis.
Statistics & Experimentsdata-visualizationexploratory-data-analysisstatisticscharts - System DesignMediumModel answerCurb Password Sharing on a Streaming Platform
Design a product and policy strategy to reduce unauthorized account sharing on a subscription streaming service without alienating legitimate paying subscribers.
System Designproduct-strategymonetizationexperimentationstreaming - Stacks & QueuesHardModel answerBuild a Type-Safe C++ Stack from Raw Storage
Implement a generic, dynamically growing C++ stack using raw memory and placement new, then defend every lifetime, allocation, and call-semantics decision.
Stacks & QueuesC++memory-managementtemplatesobject-lifetime - System DesignMediumModel answerDesign a Distributed File Ingestion and Threat Analysis Platform
Design an async, high-throughput system that ingests large files, fans out to multiple scan engines in isolation, and delivers a consolidated threat report.
System Designdistributed-systemsasync-workflowssecurityobject-storage - System DesignMediumModel answerBuilding a Multi-Source Autocomplete System for Workplace Search
Design the frontend and backend for a workplace search autocomplete that blends history, colleagues, files, applications, and filter chips in real time.
System Designautocompletesearchfrontend-architecturebackend-design - Machine LearningEasyModel answerK-Nearest Neighbors: Mechanics, Tuning, and Pitfalls
Explain how KNN works for classification and regression, walk through its key design choices, and identify where it breaks down in practice.
Machine Learningknndistance-metricshyperparameter-tuningcurse-of-dimensionality - Trees & GraphsMediumModel answerChain All Words Into One String via Shared Letters
Given a list of words, merge them into one string by joining where each word's last letter matches the next word's first letter, dropping the duplicate.
Trees & Graphseulerian-pathgraphstringshierholzer - Data Structure DesignMediumModel answerExtensible Card Hand Evaluator with Pluggable Rules
Design and incrementally build a card-hand evaluator that ranks hands, resolves ties deterministically, adds new categories, and applies a swappable discard rule.
Data Structure Designobject-oriented designextensibilitygame logic - System DesignHardModel answerDesign a Self-Describing Columnar File Format for Time-Series Data
Design the binary layout, writer/reader interfaces, and operational invariants for an append-friendly columnar file format suited to high-throughput time-series workloads.
System Designfile-formatscolumnar-storageserializationcompression - Data Structure DesignMediumModel answerFile Storage Manager with Quota Enforcement
Build an in-memory file manager that tracks user storage, enforces capacity limits, and evicts largest files when quotas shrink.
Data Structure Designhash-mapheaplazy-deletionquota-management - System DesignHardModel answerAggregate Node Counts Across an Unreliable Distributed Tree
Design a fault-tolerant protocol where each node in a distributed tree contributes its subtree size upward until the root knows the total node count.
System Designdistributed-systemsfault-toleranceconvergecastidempotency - System DesignHardModel answerKeeping Latency SLOs Alive During Traffic Spikes
Design a layered overload protection system that sustains goodput and p99 latency targets when request volume suddenly surges beyond provisioned capacity.
System Designload-sheddingrate-limitingadmission-controlcircuit-breakers - BehavioralMediumModel answerProject Deep Dive, Cross-Team Collaboration, and Technical Disagreements
Walk through a project you owned, explain how you coordinated with others to ship it, and describe a real technical disagreement and how it got resolved.
Behavioralownershipcollaborationconflict-resolutiontechnical-depth - Data Structure DesignMediumModel answerSliding-Window Trending URLs with Deduplication
Design a data structure that tracks the most-visited URLs over a configurable recent time window, with idempotent inserts and efficient eviction.
Data Structure Designsliding-windowheaphash-mapstreaming - Statistics & ExperimentsMediumModel answerRegression Output Walkthrough: Slope, P-value, and Causality
Interpret a fitted regression slope end-to-end: build the test statistic, read p-values and intervals correctly, check assumptions, and explain why correlation isn't causation.
Statistics & Experimentsregressionhypothesis-testingconfidence-intervalscausality - Machine LearningMediumModel answerDesign a Query Router Between a Local Assistant and a Cloud LLM
Design an end-to-end ML system that decides whether a natural-language query should go to a lightweight local assistant or a powerful cloud LLM.
Machine Learningsystem-designnlpclassificationexperimentation - BehavioralHardModel answerLeading an Ambiguous Product Initiative
Describe a project where you defined success criteria, tested assumptions, pivoted on evidence, resolved disagreements, and made deliberate trade-offs under constraints.
Behavioralleadershipproduct-thinkingexperimentationstakeholder-management - System DesignMediumModel answerReceding-Horizon Controller for a Sinking Drone
Build a tick-by-tick autopilot that uses short deterministic lookahead to steer a sinking drone through a series of vertical gap obstacles.
System Designsimulationsearchgame-aideterministic-planning - BehavioralMediumModel answerArticulating Your Career Transition Rationale
Craft a compelling narrative explaining your reasons for seeking new opportunities while demonstrating professionalism, growth mindset, and strategic career planning.
Behavioralcareer-developmentcommunicationself-awareness - Machine LearningHardModel answerOutliers, Leverage, and Influence in OLS Regression
Derive Cook's distance from first principles, build a diagnostic workflow, show how one point can flip a coefficient's sign, and compare robust regression alternatives.
Machine Learningregressiondiagnosticsrobust-statisticscook-distance - System DesignHardModel answerBuild a Scalable Portfolio Optimizer with Point-in-Time Data
Design a system that runs 30,000 portfolio optimizations in 90 minutes with strict as-of-date correctness, deterministic replay, and full audit trails.
System Designdistributed-systemsfinancial-systemsdata-pipelines - Machine LearningMediumModel answerReal-Time Perception Pipeline for Autonomous Driving
Design an ML pipeline that fuses camera, LiDAR, and radar data to detect obstacles with sub-100ms latency on edge hardware.
Machine Learningml-systemscomputer-visionsensor-fusionedge-ml - BehavioralMediumModel answerOwn It, Measure It, Fix It: Four Core Behavioral Stories
Prepare structured, metric-driven stories covering a setback you recovered from, a disagreement you navigated, a metric you moved, and an AI feature that misfired.
BehavioralSTAR methodownershipconflict resolutiongenerative AI - BehavioralMediumModel answerLead a Data Science Project Through Conflict, Constraints, and Scope
Walk through a single data science project from multiple angles: resolving disagreements, expanding scope responsibly, hitting tight deadlines, simplifying a solution, and closing the customer feedback loop.
Behavioralleadershipconflict-resolutionscope-managementcustomer-feedback - System DesignHardModel answerData Lifecycle Design for a Document-Grounded Chat System
Design expiry enforcement, conversation history serving, and long-term auditing for a RAG chat platform where document and chat retention windows conflict.
System DesignRAGdata-lifecycleretention-policyvector-store