practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5995 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.
- 5995
- Problems
- 2220
- Auto-graded
- 15
- Topics
- 270
- Added today
Showing 481–510 of 5995 results
- BehavioralMediumModel answerFixing the Driver Licensing Office Visit: A Product Case
Diagnose why visits to a motor vehicle licensing office frustrate customers, pick one problem, design a fix with a user journey, and define metrics and a pilot to prove it works.
Behavioralproduct-senseproduct-designuser-journeymetrics - Arrays & HashingMediumAuto-gradedKeep Words Whose Letter Multiset Appears More Than Once
Filter a word list to the entries whose letter multiset is shared by at least two entries, keeping input order and duplicates, using letter-count keys.
Arrays & Hashinghash-mapanagramscountingstrings - Arrays & HashingEasyAuto-gradedLeaked Allocations: Filter Blocks Missing From Live Pointers
Filter a list of allocated block addresses to those absent from a list of live pointers, keeping the original order, using hash-set membership for linear-time performance.
Arrays & Hashinghash-setfilteringorder-preservationarrays - Machine LearningHardModel answerFive ML Fundamentals: Regression, Forests, Adam, Network Width
Answer five conceptual machine learning questions on regression assumptions, logistic loss, random forest feature sampling, Adam versus SGD, and narrow versus wide networks.
Machine Learninglinear-regressionlogistic-regressionrandom-forestadam - Trees & GraphsMediumAuto-gradedSplit Nodes Into Two Groups With No Internal Links
Decide whether the vertices of an undirected multigraph can be split into two groups so every edge crosses between them, handling self-loops, repeated edges, and isolated nodes.
Trees & Graphsgraphbfsbipartiteconnected-components - Math & Bit ManipulationMediumAuto-gradedInteger Power via Repeated Squaring
Compute a float raised to a signed 32-bit integer power in logarithmic time and constant space, handling negative exponents, zero bases and the most negative exponent.
Math & Bit Manipulationbinary-exponentiationfloating-pointedge-casesiteration - BehavioralMediumModel answerHandling Doubts About a Teammate's Reliability: A Behavioral Answer
Walk through a time you had reservations about a coworker's reliability, how you tested your suspicion, how you addressed it respectfully, and what changed as a result.
Behavioralbehavioraltrustconflict-resolutioncommunication - Statistics & ExperimentsMediumModel answerSeparating Investor Flows from Returns in a Market Shift
Build a framework to isolate true investor flows behind a recent asset-allocation shift, test two drivers with a time-series model, and address reverse causality and flow-data biases.
Statistics & Experimentseconometricstime-seriesfund-flowscausal-inference - System DesignMediumModel answerBuild a Distributed Crawler for Billions of Pages
Design a distributed system that discovers, fetches and stores web pages at scale while avoiding repeats, honoring site rules, throttling per host, and surviving failures.
System Designsystem-designweb-crawlerdistributed-systemsurl-frontier - Math & Bit ManipulationEasyAuto-gradedLocate the Prime at a Given Position in the Prime Sequence
Find the prime at a given 1-based position in ascending order, which tests sieving, bounding the search range, and complexity reasoning.
Math & Bit Manipulationprimessievenumber-theorymath - Arrays & HashingHardModel answerDistinct Subset Sums With Negatives and Repeated Values
List every distinct multiset of array values, each index used at most once, that sums to a target when negatives, zeros and duplicates are present. Output must be sorted.
Arrays & Hashingbacktrackingpruningdeduplicationsubsets - Data Structure DesignMediumModel answerBuild a CSR Container and Multiply It by a Dense Vector
Design a class that compresses a mostly-zero integer matrix into three CSR arrays, then use it to compute a matrix-vector product in time proportional to the non-zero count.
Data Structure Designsparse-matrixcsrmatrix-vector-multiplicationdata-structure-design - Arrays & HashingEasyAuto-gradedEnumerate Every Settings Grid from Option Lists
Build the Cartesian product of named option lists into a list of dictionaries, handling empty inputs and a defined output order.
Arrays & Hashingcartesian-productbacktrackingitertoolsdictionaries - Data Structure DesignMediumModel answerBuild a Polite Web Crawler with Letter-Coverage Ordering
Design and implement a rate-limited article crawler that visits pages with unseen first letters before switching to random order, and explain how you would use an AI assistant to build it.
Data Structure Designweb-crawlerrate-limitingfrontier-designai-pairing - System DesignMediumModel answerPooled Rideshare Dispatch: Matching, Booking and Live Tracking
Design a backend that pools riders into shared vehicles, matches within 2 seconds at 10k requests/s, prevents double-booking, and streams vehicle positions to riders.
System Designsystem-designgeospatialconcurrencystate-machine - Math & Bit ManipulationMediumAuto-gradedEvaluate a Normalized CDF from Piecewise-Linear Density Samples
Build a cumulative distribution from sampled density points using exact integration of a piecewise-linear curve, then answer many query points with correct boundary behavior.
Math & Bit Manipulationnumerical-integrationbinary-searchprefix-sumsprobability - Data Structure DesignHardModel answerBank Ledger with Holds, Expiring Transfers and Customer Merge
Build an in-memory bank that supports deposits, payments, two-step transfers with expiring holds, a top-activity ranking, and customer merges that leave history untouched.
Data Structure Designobject-oriented-designhash-mapheaplazy-expiry - Machine LearningMediumModel answerUnderstanding Layer Normalization, Residual Mechanics, and Alternatives
A deep dive into Layer Normalization in Transformers: mathematical formulation, Pre-LN vs Post-LN gradient stability, RMSNorm/BatchNorm comparisons, and inference memory trade-offs.
Machine Learninglayer-normalizationtransformersdeep-learninggradients - System DesignMediumModel answerBuild a Live-Now Highlights Feed for a Streaming Marketplace
Design the ML system around an existing scoring model to rank currently active livestreams in a shopping app, covering signals, retrieval, rules, serving, and verifying a stream is still on air.
System Designml-system-designrecommendationreal-time-featuresranking - Data Structure DesignMediumAuto-gradedFlag Rule Resolver with Hash-Bucketed Rollouts
Simulate a feature-flag service: match attribute rules, gate by a SHA-256 percentage bucket, and resolve conflicts so any matching "on" rule wins.
Data Structure Designsimulationhashingrules-enginedesign - System DesignMediumModel answerRuntime Polymorphism vs Static Polymorphism in C++
Describe how virtual functions are typically implemented in C++, then weigh them against CRTP-based static polymorphism and say when each design is the better fit.
System Designcppvirtual-functionscrtppolymorphism - Statistics & ExperimentsHardModel answerAds ranking test: lower CTR, higher revenue, ship or hold?
Decide whether to launch an ads-ranking change that lowers CTR but raises price and revenue. Build a decision rule, a per-1M-impression waterfall, diagnostics and a CFO slide.
Statistics & Experimentsab-testingadsmetric-decompositionsimpsons-paradox - BehavioralHardModel answerDescribe a Highly Ambiguous or High-Stakes Technical Challenge
Structure a response detailing a technically or operationally intricate challenge, highlighting trade-off evaluation, cross-functional alignment, and lasting impact.
Behavioralbehavioralleadershipdecision-makingcommunication - System DesignMediumModel answerDesigning an LLM-Driven Test Automation Platform for Pull Requests
Design a multi-agent system that turns specs and diffs into reviewed tests, runs them in isolation, repairs broken scripts, and separates script faults from real product regressions.
System Designllm-agentstest-automationsandboxingworkflow-orchestration - Arrays & HashingMediumAuto-gradedTally Orders per Customer by Status Column
Group order records by customer and count how many fall into each requested status, producing one sorted, zero-filled row per customer.
Arrays & Hashinghash-mapgroupingcountingsorting - Machine LearningMediumModel answerDesign a Scalable Video Recommendation Architecture and Logging Engine
Architect a low-latency video feed and next-up system with focus on feature pipelines, stream joins, impression logging, and multi-objective ranking.
Machine Learningmachine-learningsystem-designrecommendation-systemslogging-infrastructure - Stacks & QueuesMediumAuto-gradedFour-Function Calculator Without Parentheses
Evaluate a string of non-negative integers with +, -, *, / and spaces, honoring precedence and truncating division toward zero, without using eval.
Stacks & Queuesstring-parsingstackoperator-precedencesimulation - System DesignHardModel answerDesigning a Production Stall Detector for Streaming Jobs
Design a distributed service that watches start, heartbeat and end messages per job and emits exactly one stall signal when a deadline passes, covering time semantics, sharding, recovery and testing.
System Designsystem-designstreamingtimersidempotency - System DesignMediumModel answerBuild a Durable, Replicated Key-Value Store Step by Step
Design a store with put, get and delete that starts as a single-node storage engine and grows into a partitioned, replicated cluster with defined consistency and failure handling.
System Designkey-value-storereplicationpartitioninglsm-tree - Statistics & ExperimentsMediumModel answerChoosing a Feed Ranking Variant From Negative Effect Intervals
Three ranking variants all lower engagement, each with a 95% confidence interval. Interpret the intervals, weigh downside risk against a tolerance, and recommend which variant to ship.
Statistics & Experimentsconfidence-intervalsab-testingpractical-significancerisk-assessment