practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6097 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.
- 6097
- Problems
- 2258
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 3721–3750 of 6097 results
- Arrays & HashingMediumAuto-gradedPosterior Probability of Facility Given Red Samples
Tests Bayesian reasoning: computing the posterior probability of a hypothesis using likelihoods and equal priors.
Arrays & Hashingprobabilitybayes-theoremmathematical-reasoning - System DesignHardModel answerBuild a High-Throughput File Storage Backend
Design a backend system that ingests and serves large files at scale, handling millions of users with high availability and durability guarantees.
System Designdistributed-systemsstorageCDNscalability - Dynamic ProgrammingMediumModel answerDigit-Sum Frequency Peaks
Count how many digit-sum values tie for the most occurrences among integers 1 through n.
Dynamic Programmingdigit-dpcombinatoricsmath - Data Structure DesignMediumModel answerBuild a Nested-Transaction Key–Value Store from Scratch
Design and implement an in-memory key–value store that supports arbitrarily nested BEGIN/COMMIT/ROLLBACK transactions with correct shadowing and O(1) reads.
Data Structure Designhash-mapstacktransactionsundo-log - Machine LearningMediumModel answerTwo-Stage Embedding Retrieval for a Rental Marketplace
Design a two-tower embedding retrieval plus ranking system for vacation rentals, covering representations, labels, bias correction, and evaluation.
Machine Learningrecsystwo-towersemantic-searchposition-bias - Arrays & HashingMediumAuto-gradedAll Orderings and Subsets of Distinct Integers
Tests recursive backtracking by building every permutation and every k-length subset of a list of distinct integers in a single function.
Arrays & Hashingbacktrackingrecursioncombinatorics - BehavioralMediumModel answerDelivering Under Pressure and Navigating Ambiguity
Two-part senior behavioral question on tight-deadline delivery and handling a difficult situation where the right path wasn't immediately clear.
Behavioralprioritizationstakeholder communicationdecision-making under pressurescope negotiation - BehavioralMediumModel answerDemonstrating Motivation, Adaptability, and Handling Uncertainty
Explain why you're interested in a specific role and environment, how you've joined new teams successfully, and how you've navigated unclear requirements.
Behavioralmotivationadaptabilityambiguitybusiness-alignment - Statistics & ExperimentsMediumModel answerEstimate Revenue for a Visual Commerce Feature
Build top-down and bottom-up revenue models for a new shopping feature, stress-test key assumptions, and design three charts that guide an investment decision.
Statistics & Experimentsestimationsensitivity-analysisbusiness-metrics - Math & Bit ManipulationHardAuto-gradedDecompose an IP Range into the Fewest CIDR Blocks
Tests greedy interval tiling and bit manipulation by converting an inclusive IPv4 address range into the minimum list of valid, aligned CIDR blocks.
Math & Bit Manipulationbit-manipulationgreedynetworking - System DesignMediumModel answerSpark Abstractions: RDDs, DataFrames, Spark SQL, and Cloud Execution
Explain the trade-offs between Spark's core APIs, how Spark improves on MapReduce, the role of lazy evaluation, and practical job submission on a managed cluster.
System Designsparkdistributed-systemsdata-engineering - BehavioralMediumModel answerReflecting on Project Leadership and Planning Decisions
Describe a major project you owned, its business impact, execution across multiple months, and specific improvements you'd make to your planning approach.
Behavioralleadershipproject-managementself-reflection - Arrays & HashingHardAuto-gradedCell Absorption Simulation: Dominant Cell After Feeding Rounds
Simulate a row of cells that absorb weaker neighbors across repeated left-to-right rounds and identify the largest survivor at equilibrium.
Arrays & Hashingsimulationarrayslist-mutation - BehavioralMediumModel answerDriving Product Quality as a Technical Lead
Plan execution, define quality metrics, diagnose root causes, and deliver measurable impact while balancing feature velocity with engineering health.
Behavioralleadershipproduct-qualitystakeholder-management - BehavioralEasyModel answerNavigate Deadlines, Pride, and Team Conflict
Demonstrate time management, ownership, and conflict-resolution skills through structured stories from your own experience.
BehavioralbehavioralSTARcommunicationconflict-resolution - StringsMediumAuto-gradedFirst Window Matching a Letter-Frequency Snapshot
Tests fixed-size sliding window technique with O(1) per-step character-count bookkeeping to locate the leftmost permutation of a pattern inside a longer string.
Stringssliding-windowhash-maptwo-pointers - Arrays & HashingMediumModel answerWriting Test Cases for Array and String Problems
Design a systematic testing strategy for array and string coding problems, covering edge cases, validation, and stress testing.
Arrays & Hashingtestingedge-casesdebugging - Heaps, Sorting & SearchMediumAuto-gradedCollect All Closest Adjacent Value Pairs
Tests sorting and greedy scanning to identify the smallest gap between elements and extract all pairs achieving it.
Heaps, Sorting & Searchsortinggreedyarrays - Greedy & IntervalsMediumAuto-gradedCalculate Worker Pay with Bonus Time Periods
Tests interval merging, overlap calculation, and time-based pay aggregation with capped rate multipliers.
Greedy & Intervalsintervalsarraysmath - SQL & DataMediumAuto-gradedJoin User Profiles and Purchase Records, Fill Gaps, Compute Line Spend
Tests left-join logic, mode imputation for missing categorical fields, and null-safe row-level spend calculation using plain Python dicts.
SQL & Datadata-manipulationjoinsnull-handling - Data Structure DesignMediumModel answerBuild a Stack That Also Tracks and Removes the Maximum
Design a stack supporting push, pop, top, peekMax, and popMax, with two implementations trading off simplicity against O(log n) worst-case popMax.
Data Structure Designstackheaplinked-listamortized-complexity - System DesignMediumModel answerReal-Time Risk Enforcement for Order Submission
Build a low-latency system that validates trading orders against risk limits before they leave your network, with atomic resource tracking.
System Designlow-latencyconcurrencyfinancial-systems - Statistics & ExperimentsHardModel answerDiagnose a Dinner-Peak Order Slump and Design a Supply Experiment
Decompose a sudden completed-order drop in a delivery marketplace, isolate the supply-side driver, and design a rigorous experiment to validate and fix it.
Statistics & Experimentsexperimentationfunnel-analysismarketplacecausal-inference - Dynamic ProgrammingMediumAuto-gradedCompact RLE Coder: Decode a String and Re-encode Under Pattern Limit
Tests string parsing for RLE decoding and interval DP to find the shortest valid re-encoding when patterns are capped at length K.
Dynamic Programmingstringsdynamic-programmingcompression - System DesignMediumModel answerHTTP API Design for Binomial Coefficient Sequences
Design a clean HTTP API that delivers row-by-row binomial coefficients, covering endpoint structure, validation, error contracts, and numeric limits.
System Designapi-designhttpvalidationerror-handling - Machine LearningHardModel answerBuild an End-to-End Response Ranking System for a Chat Assistant
Design a full ML pipeline that scores and ranks N candidate responses per user query, covering labeling, modeling, serving, evaluation, and monitoring.
Machine Learningrankingreward-modelingRLHFml-system-design - Machine LearningMediumModel answerDiagnosing and Fixing a Train–Test Performance Gap
Given a supervised model that scores much higher on training data than on held-out data, explain the bias-variance trade-off and work through a systematic plan to close the gap.
Machine Learningoverfittingbias-varianceregularizationcross-validation - Trees & GraphsMediumAuto-gradedResolve Boolean Signal Chains with Negation and Cycle Detection
Tests iterative functional-graph traversal: propagating True/False through chains of references and NOT, while correctly marking cycles, dangling references, and their dependents as unresolvable.
Trees & Graphsgraph traversalcycle detectionhash map - Statistics & ExperimentsHardModel answerDiagnosing a Sudden 20% Revenue Decline
Break a 20% weekly revenue drop into traffic, conversion and basket effects, add returns and stockout losses, then design causal tests to separate overlapping shocks.
Statistics & Experimentscausal-inferencerevenue-decompositiondifference-in-differencesdiagnostic-analytics - Machine LearningHardModel answerDesign a Personalized Feed Recommendation Engine
Design an end-to-end recommendation system for a large e-commerce platform, covering data pipelines, candidate retrieval, ranking, cold start, and evaluation.
Machine Learningrecommendation systemsML system designtwo-tower modelcandidate retrieval