practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6005 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.
- 6005
- Problems
- 2225
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 661–690 of 6005 results
- Statistics & ExperimentsHardModel answerValid Early Stopping: Interim Looks, Always-Valid Tests, Many Metrics
Design an A/B test that can be stopped early for a win or for futility without inflating false positives, covering fixed-look boundaries, always-valid methods and multiple metrics.
Statistics & Experimentssequential-testingalpha-spendingmsprte-values - System DesignMediumModel answerBrowser-Only Streaming Chat App with a Stateless Relay
Design a streaming AI chat product where conversation content lives only in the browser, a stateless relay protects provider keys, and refresh begins a fresh chat.
System Designsystem-designstreamingsseoauth-pkce - Trees & GraphsMediumAuto-gradedLevel-by-Level Site Walk With Failing Pages and a Fetch Cap
Compute a deterministic level-ordered listing of every page reachable from a start page, where failed pages yield no links and concurrency limits must not change the result.
Trees & Graphsbfsgraphlevel-ordersets - Data Structure DesignMediumModel answerBuild a Quiet-Period Call Delayer in JavaScript
Write a higher-order function that postpones a callback until calls have stopped for a given time, preserving this and arguments, and discuss cancel, flush and leading-edge variants.
Data Structure Designjavascriptclosurestimersdebounce - Data Structure DesignEasyAuto-gradedSimulate a Task Management Engine with CRUD Operations
Simulate an in-memory task tracker handling creation, retrieval, updates, filtering, and deletion of tasks with valid state validation.
Data Structure Designdesign-dsarraysdata-structuressimulation - System DesignMediumModel answerReal-Time Direct Messaging Plus Dormant-Customer Email Campaign
Design a WebSocket-based one-to-one messaging service with presence and history, plus a scheduled pipeline that emails customers who have been dormant for ten days.
System Designwebsocketmessage-routingpresencepub-sub - SQL & DataMediumAuto-gradedMonthly Line Output Report with Running Totals and Defect Percent
Group daily production records by line and month, add a per-line running total, and compute each month's defect percentage from summed counts.
SQL & Datagroup-byhashingrunning-totalaggregation - System DesignHardModel answerTaming a Compiler on a Wide-Issue VLIW Target
Explain how to steer or override a compiler's scheduling on a VLIW-style core, and how to verify the result is both correct and faster without relying on undefined behavior.
System Designcompiler-optimizationvliwperformance-engineeringsoftware-pipelining - Math & Bit ManipulationEasyModel answerThree Cat Owners and a Truth-or-Lie Rule: Find Bob's Count
Three friends speak under a rule that ties honesty to who owns more cats. Use the statements, parity, divisibility and a sum bound to find Bob's cat count and the triple of counts.
Math & Bit Manipulationlogic-puzzlecase-analysisdivisibilityparity - BehavioralMediumModel answerWhy This Team? Crafting a Targeted Motivation Answer
Practice answering a tiebreaker behavioral question: explain, with specifics, why you want to work on one engineering team's problems and what you would bring and gain.
Behavioralbehavioralmotivationteam-fitcommunication - System DesignHardModel answerScheduler Design Where Each Run Starts At Most Once
Design a distributed job scheduler for one-time and recurring jobs where a scheduled run must never start twice, covering crash ambiguity, deadlines, logs, cancellation and notifications.
System Designsystem-designdistributed-schedulerat-most-onceleases - Statistics & ExperimentsMediumModel answerFour Stats Coding Tasks: Sample Size, DiD, Bayes, Logit
Implement four small statistics routines: z-test sample size, difference-in-differences with a pre-trend check, a Bayes posterior, and top-3 features by logistic regression coefficient.
Statistics & Experimentssample-sizedifference-in-differencesbayes-rulelogistic-regression - BehavioralMediumModel answerProve You Can Hit the Ground Running in an Ad Tech Role
Plan how to show a hiring manager that your past ad-platform work covers most of a job description, with honest gap handling and well-structured stories.
Behavioralbehavioralads-engineeringstar-methodhiring-manager - System DesignMediumModel answerBuild a Backend for On-Demand Car Rides and Driver Dispatch
Design a service that pairs passengers with close-by available drivers, ingests live driver positions, and carries each trip from request to payment without ever double-booking a driver.
System Designsystem-designgeospatial-indexdispatchreal-time - Data Structure DesignMediumModel answerBuild a Single-Use Password Reset Token Manager
Design an in-memory service that issues reset tokens, enforces expiry and a failed-attempt cap, rejects reused passwords, and makes each token usable only once.
Data Structure Designstate-machinehash-mapauthenticationttl-expiry - System DesignHardModel answerBuilding a Local Business Review Service and a Link Shortener
Design a location-aware business discovery and review platform, then a short-link service, covering data models, search, caching, scaling reads and writes, and operational trade-offs.
System Designsystem-designgeospatial-searchcachingsharding - Arrays & HashingMediumAuto-gradedEvent Log Selector with Window, Dedupe and Cap
Filter a list of event records by type, time window and id, then order them stably by timestamp and truncate, testing careful handling of optional arguments and ties.
Arrays & Hashinghashingstable-sortfilteringdedupe - Trees & GraphsMediumAuto-gradedFewest Hops from a Start Node While Avoiding Closed Nodes
Run a breadth-first search on a directed or undirected graph, skipping closed nodes, to get each node's minimum edge count from the start, or -1 if it cannot be reached.
Trees & Graphsbfsgraphshortest-pathreachability - Trees & GraphsMediumAuto-gradedIdentify Cycles in Linear Chains and Directed Networks
Detect structural loops in both a next-pointer chain using constant space and a directed graph reachable from a given entry point.
Trees & Graphstrees-graphslinked-listsdfstwo-pointers - BehavioralMediumModel answerBehavioral Round Prep: Failure, Ambiguity and Cross-Team Influence
Prepare reusable stories for a senior data-science behavioral round covering failure, ambiguity, learning fast, persuasion, conflict, inclusion and respectful disagreement with a manager.
Behavioralbehavioralstar-methodambiguitycross-team-collaboration - BehavioralMediumModel answerLaunch Deadline vs. Code Quality: Disagreeing With a PM
Describe a real conflict with a product partner over a fixed ship date versus engineering health, covering the trade-offs you weighed, how you aligned, and how the deferred work got done.
Behavioralbehavioralleadershipstakeholder-managementtechnical-debt - Arrays & HashingMediumAuto-gradedCircular Lamps with Traveling Togglers
Find the final bits on a ring after several togglers walk clockwise for k steps, using lap decomposition, parity, and a cyclic difference array.
Arrays & Hashingdifference-arraymodular-arithmeticparitysimulation-optimization - Math & Bit ManipulationEasyAuto-gradedHead Counts in n Fair Coin Tosses: Sequences and Tail Odds
Compute the number of sequences, the chance of exactly 3 heads, and the chance of at most 3 heads for n fair coin tosses, using binomial counting and handling small n.
Math & Bit Manipulationcombinatoricsbinomialprobabilitymath - Statistics & ExperimentsMediumModel answerUnskippable vs Skippable Video Ads: Card Campaign Profit Math
Compare a forced-view video ad, a skippable ad and doing nothing for a cashback credit card launch: compute profit, find break-even conversion, and design the decision and tests.
Statistics & Experimentsmarketing-analyticsunit-economicsincrementalityexperiment-design - BehavioralMediumModel answerRecruiter Phone Screen for a Customer-Facing Data Engineer
Prepare short, honest, recordable answers for a recruiter call covering location, role understanding, background, client work, data tooling, a platform project and languages.
Behavioralbehavioralrecruiter-screencustomer-facingdata-engineering - Arrays & HashingMediumAuto-gradedTriple Challenge: Price Drops, Bounded Windows, Twin Rows
Combine a threshold binary search with greedy arithmetic sums, a linear scan counting subarrays with exact min and max, and hashing of binary rows to count identical pairs.
Arrays & Hashingbinary-searchgreedysliding-windowhashing - Heaps, Sorting & SearchMediumAuto-gradedRead a Value Off a Connected Line-Segment Graph
Evaluate a piecewise linear curve at a query coordinate by locating the right segment with binary search and interpolating, returning None outside the curve's domain.
Heaps, Sorting & Searchbinary-searchinterpolationarraysedge-cases - Data Structure DesignMediumAuto-gradedConditional Form Visibility with Numeric Checks and Nested Groups
Decide which questions of a form are visible by parsing typed answers and evaluating validated, nestable all/any conditions with numeric comparisons.
Data Structure Designparsingvalidationrecursiondecimal - Math & Bit ManipulationMediumAuto-gradedCollapse a Sequence to Ones Using Neighbor GCD Replacements
Find the minimum number of neighbor-GCD replacements to turn an entire array into ones, using shortest coprime-window search and a lower-bound argument.
Math & Bit Manipulationgcdsubarraynumber-theorycase-analysis - StringsMediumAuto-gradedEarliest Longest Mirror Segment in a String
Find the longest contiguous segment of a string that reads identically in both directions, preferring the leftmost one on ties and returning an empty string for empty input.
Stringsstringspalindromeexpand-around-centertwo-pointers