practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6059 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.
- 6059
- Problems
- 2244
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 2221–2250 of 3815 results
- Machine LearningHardModel answerNormalization Strategies: Batch vs Layer Normalization
Explain how batch and layer normalization differ in computation, statistics, parameters, and inference behavior, plus debugging approaches.
Machine Learningnormalizationdeep-learningtraininginference - System DesignHardModel answerDesign the Infrastructure Behind a Recommendation Feed
Design the serving and storage layers for a recommendation service, covering API shape, data flow, storage schemas, caching, and how batch training coexists with live traffic.
System Designrecommendation-systemsdistributed-systemscachingkafka - System DesignMediumModel answerFix Summary Metrics That Ignore Active Filters
Diagnose and fix an API endpoint where row results respect filters but the computed summary still reflects the full unfiltered dataset.
System Designdebuggingdata-lineageapi-designtesting - BehavioralMediumModel answerWalk Me Through a Metric You Created That Shifted a Real Decision
Tell a specific story about a metric you designed from scratch, validated, and got adopted — and show exactly what changed because of it.
Behavioralmetricsdata-driven-decisionsstakeholder-influence - Machine LearningMediumModel answerLLM Internals: Architecture, Fine-Tuning, and Evaluation
Explain decoder-only Transformer internals, compare positional encoding schemes, choose a PEFT strategy, and design an evaluation pipeline for a production LLM.
Machine Learningllmtransformersfine-tuningpeft - System DesignMediumModel answerHierarchical Multi-Tenant Rate Limiter Design
Design a distributed limiter that enforces global, regional, and per-endpoint quotas at 500K RPS with sub-10ms overhead and graceful degradation.
System Designrate-limitingdistributed-systemssystem-designredis - Machine LearningMediumModel answerOffline Evaluation Framework for a Video Safety Classifier
Design an end-to-end offline evaluation pipeline for a binary content classifier, covering metrics, label collection, calibration, threshold choice, and fairness slicing.
Machine Learningclassificationprecision-recallfairnessclass-imbalance - System DesignMediumModel answerBuilding a Fault-Tolerant Money Transfer Service
Design a backend service that processes monetary transfers reliably despite retries, crashes, network failures, and ambiguous external responses.
System Designdistributed-systemsfault-toleranceidempotencytransactions - BehavioralMediumModel answerBuild a Hiking App: Product Design and Launch Strategy
Design a mobile hiking app from user segmentation through MVP features, metrics, and go-to-market, defending trade-offs in safety, content, and growth.
Behavioralproduct-designmetricsgo-to-market - StringsMediumModel answerFind Optimal Single Digit Exchange to Maximize Value
Swap at most two digits in a non-negative integer to achieve the largest possible result.
Stringsgreedystring-manipulationoptimization - System DesignHardModel answerMulti-File HTTP API Code Review: Methods, Payloads, and Validation
Audit a multi-file HTTP API to find and fix an incorrect HTTP method, a payload contract mismatch, and missing input validation — then report everything within an hour.
System Designapi-designcode-reviewinput-validationhttp - Data Structure DesignMediumModel answerBuild a Multi-Key Task Queue with Ordering and Concurrency Control
Create a thread-safe task scheduler that runs tasks sequentially per key while respecting a global worker limit and capacity bound.
Data Structure Designconcurrencythreadingqueuesynchronization - Statistics & ExperimentsMediumModel answerA/B Testing a Marketplace Feature End to End
Design a two-sided marketplace experiment, diagnose a sample ratio mismatch, reconcile conflicting metrics into a value view, and decide launch vs. iterate.
Statistics & Experimentsab-testingexperiment-designsrmmarketplace-metrics - Trees & GraphsMediumModel answerThreaded Comment Feed: Filtering, Nesting, and Persistent Sort
Transform a flat array of comments into a sorted, nested, filterable tree while persisting the user's sort preference across sessions.
Trees & Graphstree-constructiondfslocalStoragefrontend-data - SQL & DataMediumModel answerRetail Spend Analytics: Aggregation and Regional Rankings
Write two SQL queries against a payment dataset to find top vendors globally and per region using aggregation, joins, and window-based dense ranking.
SQL & Datawindow-functionsaggregationCTEranking - Data Structure DesignMediumModel answerMultiset with O(1) Insert, Delete, and Uniform Random Sampling
Build a collection supporting duplicates with constant-time insertion, deletion, and uniform random selection from all stored occurrences.
Data Structure Designdata-structureshash-tablesrandomization - System DesignMediumModel answerDesign a Cloud-Based Development Workspace Service
Build a system that provisions on-demand containerized development environments with browser-based editing, terminal access, and port forwarding.
System Designcloud-infrastructurecontainersstate-management - BehavioralMediumModel answerTell Me About a Time You Led Through Resistance or Ambiguity
Demonstrate leadership, ownership, and measurable impact by crafting structured behavioral stories around influence, resilience, and tackling hard problems.
BehavioralSTAR methodleadershipownershipinfluence - Statistics & ExperimentsHardModel answerStaggered Rollout Causal Analysis: Designing a Robust Estimation
Design a staggered-adoption DiD for a phased 50-region rollout that stays valid under heterogeneous, dynamic treatment effects, from estimator choice to inference.
Statistics & Experimentscausal-inferencedifference-in-differencespanel-dataevent-study - SQL & DataMediumModel answerDaily Driver Earnings with Time-Based Bonuses
Calculate a courier's total earnings per day from delivery records, applying distance rates, minimum guarantees, and optional surge multipliers for high-demand hours.
SQL & Datadata-processingbusiness-logictime-windows - Data Structure DesignMediumModel answerTwo-Tier API Rate Limiter with a Sliding Window
Design a thread-safe rate limiter that enforces both a per-endpoint quota and a shared global quota using a rolling time window.
Data Structure Designrate-limitingconcurrencysliding-windowthread-safety - System DesignHardModel answerBuilding a High-Throughput Payment Processing Platform
Design a payment platform supporting wallet transfers, card transactions, refunds, and chargebacks with strong consistency, exactly-once semantics, and audit compliance.
System Designpaymentsdistributed-systemsconsistencyfinancial-systems - System DesignMediumModel answerDesign the Backend for a Real-Time Multiplayer Board Game
Design a backend that manages live game state, enforces turn-based rules, and delivers move updates in real time across thousands of concurrent sessions.
System Designwebsocketsconcurrencyreal-timegame-state - Data Structure DesignMediumModel answerBuild a Reference-Counted Shared Ownership Pointer in C++
Implement a thread-safe shared ownership smart pointer class template from scratch, covering copy/move semantics, atomic reference counting, and correct destruction.
Data Structure Designc++memory-managementconcurrency - Statistics & ExperimentsMediumModel answerMeasuring the Impact of Sorting Inboxes by Unread Count
Design a data-driven evaluation and A/B experiment to decide whether reordering a multi-account switcher by unread message count improves user engagement.
Statistics & Experimentsexperiment-designmetric-designcausal-inference - SQL & DataMediumModel answerSocial Network Feed Analytics with SQL Aggregation
Build SQL queries to analyze user engagement patterns across friend and non-friend content, handling temporal aggregation and interaction scoring.
SQL & Datasqldata-aggregationwindow-functionsjoins - Statistics & ExperimentsMediumModel answerInvestigate a Sudden Drop in Email-Driven Job Applications
Walk through the email-to-application funnel to separate a tracking bug, a delivery failure, and a relevance problem from each other.
Statistics & Experimentsproduct analyticsfunnel analysisroot cause analysisrecommendation systems - Statistics & ExperimentsMediumModel answerDesigning and Analyzing a Free-Trial Growth Experiment
Design metrics, choose analysis populations, identify pitfalls, and make a business decision for an A/B test offering a one-month free trial.
Statistics & Experimentsab-testingcausal-inferencemetricsexperimentation - Statistics & ExperimentsMediumModel answerDesigning Experiments Across a Three-Sided Delivery Marketplace
Reason through A/B design, randomization units, and root-cause diagnosis for delivery-marketplace programs, promotion systems, and a spike in cancellations.
Statistics & Experimentsexperimentationcausal-inferencemarketplacemetrics - System DesignEasyModel answerStreaming Text Labeling Pipeline with Retry Logic
Build a function that reads a CSV of text records, labels each one via an external API with retries, and writes ordered JSON Lines output with per-row failure handling.
System Designpythonconcurrencydata-pipelineerror-handling