practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6093 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.
- 6093
- Problems
- 2258
- Auto-graded
- 15
- Topics
- 279
- Added today
Showing 2101–2130 of 6093 results
- Arrays & HashingMediumAuto-gradedProduct of Two Mostly-Zero Grids
Compute the product of two mostly-zero integer matrices by precomputing nonzero positions so that no work is spent on zero operands.
Arrays & Hashingmatrixsparsesimulationhashing - Statistics & ExperimentsMediumModel answerMatching Test Errors to Classifier Metrics: FP, FN, Precision, Recall
Link false-alarm and missed-detection errors in hypothesis tests to classifier metrics, explain why precision depends on prevalence, and judge which error hurts more in practice.
Statistics & Experimentshypothesis-testingtype-i-errortype-ii-errorprecision-recall - Data Structure DesignMediumModel answerBuild an In-Memory Playlist Engine with a Three-Slot Favorites Set
Design a thread-safe in-memory audio player with a queue, history, and a favorites list capped at three that rejects overflow deterministically rather than evicting.
Data Structure Designdesigndequehash-mapconcurrency - Math & Bit ManipulationEasyModel answerCircle Point Generation, Strict Monotonic Run, and Histogram Interpolation
Solve three foundational tasks: uniform random sampling within a disk, tracking the longest strictly increasing contiguous array, and computing bucketed percentiles.
Math & Bit Manipulationsamplingarraysinterpolationmath - Data Structure DesignMediumModel answerBuild a Plain-Text Notes REST API and Black-Box Test Plan
Design a small CRUD HTTP service that accepts raw text bodies but replies in JSON, then explain how to test an unseen function from its specification alone.
Data Structure Designrest-apihttp-status-codesunit-testingflask - BehavioralMediumModel answerDefending a Build vs. Buy Architecture Decision
Articulate the strategic justification, trade-offs, and cost-benefit analysis for choosing to develop an internal system over purchasing a standard commercial alternative.
BehavioralBehavioralArchitectureEngineering StrategyLeadership - Statistics & ExperimentsMediumModel answerMeasuring Flight Lateness and Proving a Fix Actually Works
Define lateness metrics, model how often and how badly flights run late, and choose a valid design and inference method to show an operational change reduced delays.
Statistics & Experimentshypothesis-testingcausal-inferencedifference-in-differencesregression - Greedy & IntervalsEasyAuto-gradedMinimum Days to Complete Sequential Tasks With Daily Time Budgets
Greedy single-pass simulation: pack tasks in order into daily time budgets without splitting, and return the day count or -1 if impossible.
Greedy & Intervalsgreedysimulationtwo-pointersarrays - Stacks & QueuesMediumAuto-gradedUnscramble a Cipher-Encoded Nested Outline
Parse a parenthesized pre-order tree string with a stack and undo a letter-substitution cipher, where each node's text is the run just before its closing parenthesis.
Stacks & Queuesstackstring-parsingtree-deserializationsubstitution-cipher - Math & Bit ManipulationEasyAuto-gradedSimple OLS Linear Regression Fitting
Compute the slope and intercept for a univariate linear regression model using ordinary least squares.
Math & Bit Manipulationmatharraysstatistics - Data Structure DesignMediumModel answerEfficient Large File Tailer and Sensor Heartbeat Monitor
Read the last N lines of a huge file using reverse chunk seeking, and track active devices using an OrderedDict for fast sliding window health queries.
Data Structure Designfile-iosliding-windowordered-dictsystem-design-ds - Data Structure DesignMediumAuto-gradedRolling Window Stats: Unique Senders and Peak Message Size
Replay a list of operations on a fixed-size sliding window, reporting the distinct sender count and the largest payload size after each insertion.
Data Structure Designsliding-windowdequehash-mapheap - Data Structure DesignMediumAuto-gradedPrefix-Compressed Trie for Integer Sequences
Simulate operations on a prefix-compressed radix tree storing integer sequences, supporting sequence insertions and depth-first tree serialization.
Data Structure Designradix-treetriedata-structure-designtrees - Arrays & HashingEasyAuto-gradedModular Product Exclude Current Element
Compute the modular product of all elements in an array except the current element for each index without division.
Arrays & Hashingarraysprefix-summath - Linked ListsEasyAuto-gradedReverse a Sequence of Node Values
Tests the ability to reverse a sequential list of numbers efficiently, mimicking linked list reversal operations.
Linked Listslinked-listsarrayspointers - BehavioralMediumModel answerResolving Critical Production Vulnerabilities Prior to Launch
Evaluate and prioritize strategy choices for managing late-stage software defects, balancing system health, delivery timelines, and stakeholder trust.
Behavioralbehavioralleadershiptradeoffsstakeholder-management - Math & Bit ManipulationMediumModel answerCheapest Cart Total with Percent-Off and Buy-X-Get-Y Promotions
Define pricing rules for percent-off and buy-X-get-Y promotions, then build an algorithm that returns the lowest legal total for a cart, covering stacking, repeats, and rounding.
Math & Bit Manipulationpricingdiscountsrequirements-clarificationgreedy - SQL & DataHardModel answerDetect Suspicious Annotators in Data Pipelines
Process crowd-sourced label data to compute consensus metrics and flag underperforming annotators at scale.
SQL & Datapandasdata-cleaningdata-analysisgroup-by - Greedy & IntervalsMediumAuto-gradedRoom Count and Heaviest Prerequisite Chain for Sessions
Combine an interval-overlap sweep with a min-heap and a longest weighted path on a DAG using topological order.
Greedy & Intervalsintervalsmin-heaptopological-sortdag - Data Structure DesignMediumAuto-gradedEscrow-Style Ledger with Expiring Transfers and Account Merging
Simulate an in-memory ledger with held transfers that expire after a day, account merging, and a ranking of accounts by completed outgoing totals.
Data Structure Designsimulationhash-mapheapstate-management - Data Structure DesignMediumAuto-gradedRolling Mean Over the Latest K Readings
Simulate a rolling-window mean over a stream of readings, handling the warm-up phase and keeping floating-point error from accumulating across long streams.
Data Structure Designsliding-windowqueuefloating-pointsimulation - Data Structure DesignEasyAuto-gradedSimulate Rate Limiter Decisions
Simulate a thread-safe fixed-window rate limiter processing a sequence of request timestamps.
Data Structure Designdesignsimulationarrays - Machine LearningHardModel answerDesign a Multimodal Video Search Engine
Design a scalable text-to-video and video-to-video retrieval architecture handling billions of clips, detailing modeling choices, vector indexing, serving pipelines, and evaluation strategy.
Machine Learningsystem-designinformation-retrievalvector-searchdeep-learning - Statistics & ExperimentsHardModel answerDesigning Graph-Based Cluster Experiments for Social Features
Learn how to design cluster-randomized experiments under network interference, handle edge spillover, choose non-gameable metrics, and compute variance design effects.
Statistics & Experimentsexperimentationcausal inferencecluster randomizationnetwork interference - System DesignMediumModel answerDesign a Telemetry and Log Indexing Engine for Autonomous Vehicles
Architect a scalable telemetry storage and indexing platform to capture, store, and query petabytes of high-throughput sensor logs efficiently.
System Designsystem-designdistributed-systemsindexingstorage-tiering - BehavioralMediumModel answerRisks and Rollout Plan for a Cyclist Courier Pilot
Assess the operational, safety, economic and regulatory risks of adding bicycle couriers to a food-delivery platform, then propose mitigations and a measured rollout.
Behavioralproduct-strategyrisk-assessmentmarketplaceoperations - BehavioralMediumModel answerWalking Through Your Hardest Build and Where You Want to Grow
Describe a technically demanding project you personally drove, explain the key trade-offs and their effects, then connect your next-step growth goals to the team you are joining.
Behavioralbehavioralownershiptrade-offsstar-method - BehavioralEasyModel answerNavigating ML Infrastructure and Data Science Collaboration Scenarios
A guide on handling three ML platform challenges: accelerating training loops, troubleshooting production performance drops, and navigating governance bottlenecks collaboratively.
Behavioralmachine-learningbehavioralstakeholder-managementmlops - System DesignMediumModel answerC++ Semantics and GPU Memory Trade-offs: Four Short Answers
Answer four fundamentals questions: enum and struct behavior in C++, macros versus inline functions, GPU matrix-add kernel design, and optimizing uniform or repeated read-only values.
System Designcppgpucudamemory-coalescing - Greedy & IntervalsMediumAuto-gradedCompute Free Windows from Schedule Constraints
Compute unreserved time windows for specified daily schedules given opening hours and existing bookings.
Greedy & Intervalsintervalssortingstringgreedy