practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6130 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.
- 6130
- Problems
- 2273
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 2791–2820 of 6130 results
- Statistics & ExperimentsMediumModel answerInvestigating Swings in a Loan Approval Rate Over Two Years
Explain how you would diagnose a dip, a bump and a sustained rise in a monthly approval rate by splitting numerator, denominator and mix, validating data, and separating seasonality from causal effects.
Statistics & Experimentsroot-cause-analysisratio-metricstime-seriessegmentation - Trees & GraphsEasyModel answerLone-Parity Filter and Leftmost Node Per Tree Depth
Write one function that returns the elements whose even/odd class appears exactly once in an array, plus the first node's value at every depth of a binary tree.
Trees & Graphsbfsbinary-treelevel-ordercounting - System DesignMediumModel answerShipping Multi-GB Model Artifacts to a Large Edge Fleet
Design a secure, resumable pipeline that delivers 0.5–50 GB model bundles from a central registry to over 10,000 edge nodes, with staged rollouts, rollback, and fleet-wide monitoring.
System Designdistributed-systemscontent-addressable-storagerolloutsedge-deployment - Statistics & ExperimentsMediumModel answerWhy Scaling Sample Singletons by 10 Overcounts Rare Queries
Explain the bias of scaling sample singleton counts from a 10% log sample, then build, stress-test and simulate better estimators of the true number of once-only queries.
Statistics & Experimentssamplinggood-turingfrequency-of-frequenciesbootstrap - Machine LearningHardModel answerBuild a Multimodal Pipeline to Flag and Handle Unsafe Videos
Design an ML-driven system that screens uploaded and already-published videos for policy violations, blends automation with human reviewers, supports appeals, and resists evasion.
Machine Learningml-system-designcontent-moderationmultimodalhuman-in-the-loop - Trees & GraphsMediumAuto-gradedJob Scheduling with Cycle Check and Downstream Rerun Set
Topologically sort jobs with cycle detection, then use graph reachability to find all jobs affected by changed ones and list them in valid order.
Trees & Graphstopological-sortgraphbfscycle-detection - System DesignHardModel answerStreaming Keyword-Set Matcher for Interleaved Rules and Events
Build a processor for a stream of subscriptions and log events that assigns IDs, acknowledges each subscription, tags matching events, and scales to heavy traffic with deletions.
System Designinverted-indexstream-processingscalingdeletion - Greedy & IntervalsMediumAuto-gradedSequential Allow/Deny Rules Over an IPv4 Block
Track an IPv4 block as disjoint integer intervals while applying ordered allow and deny CIDR rules, deciding whether the block ends up fully covered with no deny hit.
Greedy & Intervalsintervalsipv4cidrsimulation - Statistics & ExperimentsEasyModel answerFour Quick Probability Drills: Decay, Regression, Doors, Dice
Answer four short probability and statistics questions: surviving atoms after repeated halvings, two population regression slopes, a three-door game show, and rolls needed to see every die face.
Statistics & Experimentsprobabilitybinomialols-regressionmonty-hall - Data Structure DesignMediumAuto-gradedHealthy Region Registry and Nearest-Site Router
Simulate a command interpreter that registers sites, toggles their health, and answers nearest-healthy-site queries by great-circle distance, with strict validation and tie-breaking.
Data Structure Designsimulationstring-parsinghash-mapvalidation - System DesignHardModel answerBuild a Clickstream and Orders Warehouse for an Online Shop
Design a warehouse for a retail platform's clickstream and orders that serves two fixed queries: monthly unique Asian viewers of an item, and the current top three orders by value.
System Designdata-warehouseevent-schemaidentity-stitchingdimensional-modeling - Machine LearningHardModel answerBuilding a GPU Memory Budget for LLM Fine-Tuning
Work out how much accelerator memory a language-model fine-tuning job needs, covering weights, gradients, optimizer state, activations, buffers, and parallelism, for both full and LoRA-style tuning.
Machine Learningllmfine-tuninggpu-memorylora - Arrays & HashingEasyAuto-gradedYearly Account Balance with Conditional Monthly Service Charges
Simulate a year of account activity, applying a flat monthly charge unless a month has enough payments with a large enough total, and return the final balance.
Arrays & Hashingsimulationhash-mapaggregationconditional-logic - System DesignEasyModel answerFrom C++ Source File to Running Process: The Build Pipeline
Walk a C++ file through preprocessing, compilation, assembly and linking, then explain object files, linker errors and the process address space at launch.
System Designc++compilationlinkingelf - Greedy & IntervalsMediumAuto-gradedCourier Earnings from Overlapping Order Events
Sweep over unsorted start/end events to total concurrency-weighted seconds, validate malformed input, and convert to a half-up rounded dollar string.
Greedy & Intervalsinterval sweepevent sortingvalidationexact arithmetic - Data Structure DesignEasyAuto-gradedMost Likely Follower Lookup Over Streaming Sentences
Process a stream of add and query operations over sentences, tracking adjacent-word counts and returning the most frequent follower with lexicographic tie-breaking.
Data Structure Designhash-mapstringssimulationcounting - StringsEasyAuto-gradedReport SQL Clauses in Conceptual Evaluation Order
Detect which of six SQL clauses appear in a query string and return them in SQL-92 logical evaluation order, using case-insensitive whole-word matching.
Stringsstringsregexsqlparsing - StringsMediumAuto-gradedMask the Leftmost Longest Keyword in a Text
Find the earliest-starting match among several keywords, prefer the longest at that spot, and collapse it into a single placeholder character.
Stringsstringsstring-matchingsimulationtrie - Machine LearningHardModel answerBuild a Nearby-Restaurant Ranking Pipeline for an App Homepage
Design a sub-100ms ML pipeline that picks and ranks open, deliverable restaurants for each user's homepage carousel, covering retrieval, ranking, cold start, and evaluation.
Machine Learningrecommender-systemscandidate-generationrankinggeospatial - System DesignHardModel answerBuilding a Throttling Service for a Multi-Node API Fleet
Design a throttling layer that caps per-key request rates with burst tolerance, first on one machine, then across many app servers, covering consistency, clock drift, failures, and observability.
System Designrate-limitingtoken-bucketsliding-windowredis - SQL & DataMediumModel answerRank Advertisers by User Complaint Rate Over a 7-Day Window
Write SQL that finds the worst advertisers by report-to-visit rate, picks each one's worst ad, and builds a daily leaderboard without double-counting visits or reports.
SQL & Datasqlwindow-functionsaggregationjoins - StringsHardModel answerChunk-Safe Tokenizer for Fenced Code Blocks
Design a stateful tokenizer that turns arbitrarily chunked Markdown into text and code-block events, correctly handling fences split across chunk boundaries.
Stringsstreamingstate-machinestring-parsingmarkdown - Heaps, Sorting & SearchMediumAuto-gradedReplay Commands to Track a Running Median
Replay a list of insert and query commands on a growing multiset of integers, reporting the median at each query; tests two-heap or order-statistic maintenance.
Heaps, Sorting & Searchheapstreamingmediandesign - SQL & DataMediumModel answerWeekly Ad Click Rate: Overall and Per Campaign Category
Write SQL that deduplicates ad event logs, restricts them to a one-week UTC window, and computes click-through rate overall and per campaign type, with safe handling of zero impressions.
SQL & Datasqlaggregationdeduplicationconditional-aggregation - Data Structure DesignMediumModel answerFrequency-Ranked Shuffle Without Repeats Per Round
Build a player that ingests users' song lists and serves songs from most to least popular, never repeating a song until every known song has played once in the round.
Data Structure Designheaplazy-deletionhash-mapdesign - BehavioralMediumModel answerNavigating a Technical Disagreement With a Teammate
Craft a 2–3 minute behavioral answer about a real disagreement with a peer or stakeholder, showing how you resolved it, what changed, and what you learned.
Behavioralbehavioralconflict-resolutioncommunicationcollaboration - Data Structure DesignMediumAuto-gradedWeighted Prefix Suggestion Engine via Command Replay
Replay a list of add and search commands on a weighted word store, returning the top-k prefix matches ranked by weight, then alphabetically.
Data Structure Designtrieprefix-searchheaphash-map - BehavioralMediumModel answerNavigating a Technical Standoff During Pull Request Review
Describe a time you and a colleague disagreed strongly about a pull request, how you separated real risk from taste, used evidence to resolve it, and kept the working relationship healthy.
Behavioralbehavioralcode-reviewconflict-resolutioncommunication - Math & Bit ManipulationMediumAuto-gradedChance of a Red Majority When Skipping Returned Marbles
Compute a probability for a draw process with discarded-and-returned items by reducing it to a hypergeometric count, ignoring the irrelevant returned category.
Math & Bit Manipulationprobabilitycombinatoricshypergeometricmath - Trees & GraphsHardAuto-gradedFewest Rounds to Slay a Scripted Boss With One Revive
Find the minimum number of rounds to defeat a boss that attacks on a repeating script, using state-space BFS over boss HP, player HP, revive flag, and script position.
Trees & Graphsbfsstate-space-searchsimulationshortest-path