practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5985 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.
- 5985
- Problems
- 2218
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 301–330 of 3767 results
- BehavioralMediumModel answerWalk Through a Large Infrastructure Project You Drove
Describe a multi-team infrastructure project you owned from start to finish, covering your technical direction, stakeholder buy-in, risk and incident handling, trade-offs, and measured results.
Behavioralbehavioralleadershipinfrastructurestakeholder-management - System DesignMediumModel answerKeeping Courier Payouts Correct When the Processor Is Flaky
Design a payout pipeline that stays correct and pays each courier exactly once when the downstream payment processor is slow, erroring, or down for hours.
System Designidempotencyretriescircuit-breakerdead-letter-queue - Statistics & ExperimentsMediumModel answerMetrics, Experiment Design and Sample Sizing for a Consumer App
Choose a consumer app, model a new revenue stream, define metrics, prioritize an improvement, size an A/B test for a 15% to 17% conversion lift, and defend its cost.
Statistics & Experimentsab-testingsample-sizeproduct-metricspower-analysis - System DesignMediumModel answerBuilding a Request Throttling Service That Scales Across Regions
Design a service that decides per caller whether each API request is allowed, then scale it to many users and regions and make its limits more accurate, discussing the trade-offs.
System Designrate-limitingdistributed-systemsredistoken-bucket - Trees & GraphsMediumModel answerMapping a Hidden Maze: Shortest Route for a Sensing Robot
A robot in an unseen grid senses neighbours for free and pays per move. Find a shortest route to a target, or return to the start and report failure if none exists.
Trees & Graphsbfsgridonline-explorationshortest-path - BehavioralMediumModel answerTwo Behavioral Stories: Unclear Goals and Principled Pushback
Prepare two structured stories: one about producing results when goals are undefined, and one about disagreeing with a colleague or manager while preserving trust and committing to the outcome.
Behavioralbehavioralstar-methodambiguityconflict-resolution - SQL & DataMediumModel answerRolling Spend View, Dependent Inserts, and Price Change Fallout
Build a 7-day spend view over three tables, add rows in foreign-key order, update statuses and prices, then reason about how a price change distorts past spend.
SQL & Datasqlviewsleft-joininsert-update - Machine LearningHardModel answerLinear Regression, Tree Ensembles, Rare Fraud, and Seasonal Forecasting
Explain OLS and its assumptions, compare bagging, random forests and boosting, handle a 0.2% positive class, and outline a forecasting pipeline for data with trend and seasonality.
Machine Learningolsensemblesclass-imbalancetime-series - System DesignMediumModel answerBuild a Fleet-Wide Error Frequency Tracking Platform
Design a shared platform that ingests error logs from many apps, collapses similar messages into one signature, and answers count, trend and top-N queries reliably during incident spikes.
System Designsystem-designstreamingaggregationtime-series - Trees & GraphsMediumModel answerRight Edge of a Tree and Minimal Bracket Removal
Two linked tasks: list the nodes visible from the right of a binary tree, and delete the fewest parentheses from a string so the rest is balanced.
Trees & Graphsbinary-treebfsstackstrings - System DesignHardModel answerAtomic Updates Across Orders, Payments and Inventory Services
Design a protocol that keeps writes consistent across several services and databases, comparing 2PC, 3PC and Sagas, and covering failures, retries, timeouts and delivery guarantees.
System Designdistributed-transactionstwo-phase-commitsagaidempotency - System DesignHardModel answerEnterprise Document Q&A with Retrieval and Generation at Scale
Design an end-to-end, multi-tenant retrieval-augmented question-answering platform over large, mixed-format document collections, with strict isolation, freshness, latency and cost targets.
System Designragvector-searchml-system-designhybrid-retrieval - System DesignMediumModel answerReal-Time Chat for Mass-Audience Livestreams
Design a chat feed for livestreams where one broadcast may have over a million viewers, with sub-half-second delivery, durable storage and live moderation.
System Designfan-outwebsocketkafkareal-time - Machine LearningMediumModel answerFixing an Underfit Boosted-Tree Model: Which Knob to Loosen?
Pick the one hyperparameter that, when lowered, makes a gradient-boosted tree ensemble more flexible, justify it, and describe how to confirm underfitting.
Machine Learninggradient-boostingunderfittinghyperparameter-tuningbias-variance - SQL & DataMediumModel answerTrial Conversion and Day-30 Return Rates per Experiment Arm
Write one SQL query comparing control and treatment on 7-day trial conversion and on a week-long return window starting 30 days after the trial begins.
SQL & Datasqlab-testingcohort-analysisretention - System DesignMediumModel answerDesign a Scalable API Rate Limiter
Architect a high-performance, distributed rate limiting system for an API gateway handling high-throughput, bursty traffic.
System Designrate-limiterdistributed-systemsapi-gatewayredis - System DesignMediumModel answerFinding Identical Files in a Huge Directory Tree
Group byte-identical files across a directory tree too large for memory, minimizing disk reads, staying correct under hash collisions, and scaling out across workers.
System Designdeduplicationhashingexternal-memoryfile-systems - BehavioralMediumModel answerProve Your Engineering Work Moved a Business Metric
Describe a project you drove for a business or operational result, covering how you set success criteria, what you measured, and how you showed your own work caused the change.
Behavioralbehavioralimpactmetricsattribution - Machine LearningMediumModel answerBuilding a Classifier for Authentic vs Synthetic DNA Sequences
Design a robust system to classify genuine vs generated DNA sequences, leveraging a massive unlabelled real corpus, minimal ground-truth labels, custom negative generators, and bio-aware metrics.
Machine Learningmachine-learningsequence-modelingsemi-supervised-learninganomaly-detection - System DesignHardModel answerDesign a Scalable Distributed Task Processing Engine
Design an architecture for a multi-tenant distributed task execution platform handling millions of parallel jobs, emphasizing fault tolerance, scheduling, leases, and idempotency.
System Designsystem-designdistributed-systemsfault-tolerancequeues - Machine LearningEasyModel answerChoosing a Search Strategy for Model Hyperparameters
Compare strategies for searching hyperparameters, from hand tuning to Bayesian and early-stopping methods, weighing cost, parallelism and sample efficiency.
Machine Learninghyperparameter-tuningbayesian-optimizationrandom-searchhyperband - BehavioralMediumModel answerBehavioral Prep: Motivation, Pivots and Fast Calls for a PM Loop
Prepare structured answers for five common product-manager behavioral prompts: company motivation, role fit, a mid-project pivot, a decision under ambiguity, and a five-year plan.
Behavioralbehavioralproduct-managerleadership-principlesstar-method - System DesignHardModel answerBuilding a Global Multi-Tenant Scheduling and Events Platform
Design a calendar backend for hundreds of millions of users covering events, recurrence, time zones, sharing, reminders, sync, and storage choices, with APIs, schemas, queries, and scaling.
System Designsystem-designcalendarrecurrencesharding - Statistics & ExperimentsHardModel answerSample Size Planning for a Conversion Experiment and Its Levers
Size a two-arm conversion test from a baseline rate and relative lift, then explain how tighter alpha, higher power, uneven splits, clustering, interim looks and overdispersed counts change the required n.
Statistics & Experimentspower analysissample sizetwo-proportion z-testdesign effect - Statistics & ExperimentsMediumModel answerReading a Flight-Delay Regression: Metrics and Diagnostics
Walk through interpreting and diagnosing a multiple linear regression for flight delays: standardized coefficients, fit metrics, collinearity, heteroskedasticity, intercepts, and misspecified residuals.
Statistics & Experimentslinear-regressionmulticollinearityheteroskedasticitymodel-diagnostics - Machine LearningMediumModel answerDecoding Text from Next-Token Probabilities: Greedy vs Beam
Build a greedy decoder and a width-k beam search over a next-token model, return each sentence with its probability, and explain why long outputs score low and how to correct it.
Machine Learningbeam-searchdecodinglanguage-modelslog-probabilities - BehavioralMediumModel answerDefending Your Biggest Project Under Repeated "Why" Questions
Prepare to walk through one or two significant past projects in depth, showing technical judgment, cross-team influence, ownership, and a mature approach to feedback and design reviews.
Behavioralbehavioralproject-deep-diveownershipleadership - System DesignMediumModel answerArchitecting a Durable, Always-On Object Store at Scale
Design a horizontally scalable object storage service with buckets, keys, and huge blobs, covering metadata, placement, durability, consistency, large uploads, security and operations.
System Designobject-storagedistributed-systemsreplicationerasure-coding - Machine LearningMediumModel answerBuild a Personalized Swipe-Feed Ranking Pipeline for Clips
Design an end-to-end ML recommender for a vertical clip feed with multi-stage retrieval and ranking, real-time learning, diversity and safety controls, and cold-start handling.
Machine Learningrecommendation-systemsml-system-designretrieval-and-rankingcold-start - BehavioralMediumModel answerBuild a Story Portfolio and One Flagship Project Deep Dive
Prepare a set of short stories showing problem-solving, teamwork, and leadership, plus one detailed account of a project you drove from start to finish, covering obstacles and measurable outcomes.
Behavioralbehavioralleadershipstar-methodproject-deep-dive