practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6036 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.
- 6036
- Problems
- 2235
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1141–1170 of 3801 results
- BehavioralMediumModel answerDiscussing a Professional Failure and Its Organizational Impact
Learn how to present a major technical or operational error, detail your immediate response, and show how it drove long-term process improvements.
Behavioralbehavioralleadershipincident-responseownership - System DesignMediumModel answerPresenting End-to-End System Architecture and Database Strategy
Architect and present a high-volume production system, detailing API flow, query indexing, data partitioning, fault tolerance, and explicit technical trade-offs.
System Designsystem-designdatabase-indexingpartitioningdata-architecture - StringsEasyModel answerFind Unique Words Across Two Text Blocks
Identify words that appear in either of two given text strings, but not in both, using symmetric set difference.
Stringsstringsarraysset-operations - Stacks & QueuesMediumModel answerBuild a Multi-Room Async TCP Chat Server
Implement a concurrent, room-based TCP chat server in Python using asyncio, featuring command processing, scoped broadcasts, backpressure handling, and strict resource cleanup.
Stacks & Queuesconcurrencyasyncionetworkingpython - Greedy & IntervalsMediumModel answerPeak Overlap Point, Bounded BST Sums, and Call-Stack Self Time
Three separate tasks: find an integer with the highest interval overlap, sum BST values within a range (plus many-query speedups), and compute per-function self time from nested start/end logs.
Greedy & Intervalssweep-linebstprefix-sumsstack - Data Structure DesignHardModel answerExpiring Resource Credit Ledger with Out-of-Order Events
Design an in-memory compute credit ledger handling expiring grants, usage subtractions with earliest-expiration priority, out-of-order event ingestion, and point-in-time balance queries.
Data Structure Designdesign-dsheaps-sortinggreedy-intervalsarrays - Data Structure DesignMediumModel answerReconcile Cached Coverage Status with Out-of-Order Checks
Build a reconciler that keeps a cached insurance status correct when verification results arrive late, duplicated, or as failures, and that can rebuild the status from full history.
Data Structure Designidempotencyout-of-order eventscache consistencystate reconciliation - System DesignMediumModel answerDesign a Distributed Calendar Aggregation Engine
Architect a MapReduce-based system to process massive calendar datasets and identify mutual free time slots of length d across large organizations.
System Designsystem-designmapreducedistributed-systemsintervals - System DesignMediumModel answerDesign a Real-Time News Story Aggregator
Architect a high-throughput news feed system that ingests raw articles, groups duplicate reports into single event clusters, and serves personalized timelines at scale.
System Designsystem-designdata-ingestionclusteringembeddings - System DesignHardModel answerDesign an Urban Traffic Intersection Signal System
Architect an autonomous, safety-critical traffic signal system featuring real-time actuation, emergency preemption, hardware safety monitors, and central orchestration.
System Designsystem-designdistributed-systemsiotreal-time - BehavioralMediumModel answerChanging Course Midstream and Transitioning Out of a Role You Owned
A two-part behavioral prompt: describe a project where you had to change direction midway, and a time you left a project you led as the main contact. Includes a model answer.
Behavioralbehavioralleadershipadaptabilityhandoff - Statistics & ExperimentsMediumModel answerLinear Regression Assumptions, OLS Residuals, and Violations
Evaluate linear regression assumptions on 10,000 rows, prove sample residual orthogonality, analyze multicollinearity, and separate bias from standard error issues.
Statistics & Experimentslinear-regressionolsgauss-markovmulticollinearity - System DesignEasyModel answerDiagnosing a Host Overloaded by Excessive Logging
Walk through how you would find out whether logging is exhausting a server, restore service safely, and put guardrails in place so the problem cannot return.
System Designloggingobservabilityincident-responsebackpressure - System DesignMediumModel answerLong-Term User Memory for a Personalized LLM Assistant
Design a low-latency, scalable memory layer that lets an LLM assistant remember user facts, retrieve the relevant ones per turn, resolve conflicts, and honor deletion requests.
System Designllmmemoryvector-searchpersonalization - System DesignHardModel answerDesign a Hospitality Platform Wallet with Authorizations and Payouts
Design a robust multi-currency ledger and wallet architecture supporting holds, captures, host payouts, idempotent processing, and automated reconciliation.
System Designsystem-designledgerfintechidempotency - BehavioralMediumModel answerWhy Join a Research-Driven Product Team? Building the Answer
Build a credible answer for why you want to join a team that explores new products and infrastructure, tying your motivation to real evidence, a working style, and responsible delivery.
Behavioralbehavioralmotivationleadershipexperimentation - BehavioralMediumModel answerWalk Through a Business-Impacting Analytics Project
Structure a story about an analytics project using STAR, highlighting business impact, data grain, method choice, and handling limitations.
Behavioralbehavioralanalyticscommunicationproduct-analytics - SQL & DataMediumModel answerMean Imputation of Numeric Columns in a pandas DataFrame
Replace NaNs in numeric DataFrame columns with column means, then extend it to in-place updates, per-group means and all-NaN columns, with non-numeric columns left alone.
SQL & Datapandasmissing-dataimputationgroupby - Machine LearningMediumModel answerCommercializing a Breakthrough Text-to-Video Model
Define a comprehensive strategy to transform a raw text-to-video ML model into a viable, scalable commercial product.
Machine LearningGenerative AIProduct StrategyMLOpsModel Deployment - System DesignMediumModel answerDesign a Real-Time Enterprise Team Chat Platform
Architect a low-latency, highly durable workplace chat platform supporting real-time delivery, missed message catch-up, channel fanout, and per-conversation ordering.
System Designsystem-designdistributed-systemswebsocketsdata-modeling - SQL & DataEasyModel answerDaily Revenue from Impression-Active Ads, Split by Origin
Write a SQL query that reports, per UTC day and ad origin, how many ads were active and how much revenue those ads earned on days they were active.
SQL & Datasqljoinsaggregationfan-out - BehavioralMediumModel answerPresenting a Recent Project: Scope, Ownership and Impact
Give a structured account of a recent engineering project, covering the problem, scope, your own contribution, measured results and the trade-offs you made.
Behavioralbehavioralproject-deep-diveownershipimpact-metrics - Statistics & ExperimentsHardModel answerDesigning and Evaluating Experiments for Social Feed Ranking Changes
Define high-quality engagement metrics and design robust A/B tests to evaluate feed ranking algorithms while managing network interference and multi-metric trade-offs.
Statistics & ExperimentsA/B TestingExperimentationMetric DesignNetwork Effects - Statistics & ExperimentsMediumModel answerMarketing Channel Budget Optimization with Spend Constraints
Formulate marketing channel profit, analyze inbound call unit economics, and solve optimal budget allocation under per-channel spend caps.
Statistics & ExperimentsOptimizationMarketing AnalyticsUnit EconomicsLinear Programming - System DesignHardModel answerKeeping Tenants Apart in a Shared-Index LLM Assistant
Design authorization boundaries so a multi-tenant document Q&A agent cannot leak data across tenants or sessions, or be steered by injected instructions in uploaded files.
System Designmulti-tenancyragauthorizationprompt-injection - Machine LearningHardModel answerUnderfitting Shallow Nets and Dying Gradients in Deep Sigmoid MLPs
Analyze why a shallow network underfits and a very deep sigmoid network fails to train, using the bias-variance decomposition, the backprop chain rule, ReLU and residual connections.
Machine Learningbias-variancevanishing-gradientsbackpropagationdouble-descent - System DesignMediumModel answerArchitecting a Fault-Tolerant Payment Gateway Service
Design an enterprise-grade payment gateway that guarantees at-most-once execution, handles ambiguous network timeouts, and maintains an auditable, immutable ledger.
System Designsystem-designdistributed-systemsidempotencyevent-driven - BehavioralMediumModel answerFour-Part Self-Introduction: Motivation, Edge, Pet Peeve, Stack
Answer a four-part behavioral prompt covering why you want the role, what sets you apart, what you dislike about programming, and which tools and versions you use.
Behavioralbehavioralself-introductionmotivationcommunication - Machine LearningMediumModel answerReviewing a Venv Setup Script and Data-Prep Transformers
Walk through a virtual-environment shell script, then review an outlier-clipping transformer and three imputers for design, style and testability, and write a key unit test.
Machine Learningshell-scriptingsklearn-transformersdata-leakageoutlier-handling - Statistics & ExperimentsHardModel answerDesigning and Analyzing a Core Feed Ad-Insertion Experiment
Design an A/B test for introducing sponsored video cards into a social feed, addressing metrics, sample size, network interference, multiple testing, and novelty effects.
Statistics & ExperimentsA/B TestingExperimentationSample SizeNetwork Effects