practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6010 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.
- 6010
- Problems
- 2227
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 5251–5280 of 6010 results
- System DesignMediumModel answerBuilding a Search Engine for Social Media Posts
Design a search system that indexes post content, handles include/exclude queries, and ranks matches by term frequency across distributed infrastructure.
System Designindexingdistributed-systemssearchranking - Machine LearningMediumModel answerBuild a Document Embedding Pipeline with Filtered Retrieval
Design ingestion and search functions for a vector-based document retrieval system with metadata filtering and production-grade error handling.
Machine Learningembeddingsvector-searchml-systemsproduction-ml - System DesignMediumModel answerDesign a Product Price Monitor with Alerts
Build a scalable service that tracks prices across e-commerce sites, stores historical data, and notifies users when prices drop below their thresholds.
System Designdistributed-systemstime-seriesnotificationsdata-pipelines - System DesignMediumModel answerArchitecting a Real-Time Messaging System at Scale
Design a messaging backend that sustains 1M concurrent connections and 50K messages per second with sub-100ms end-to-end latency.
System Designmessagingkafkawebsocketscassandra - System DesignMediumModel answerReal-Time Payment Authorization Platform with Encrypted User Vault
Build the issuer backend that decides approve/decline for card transactions in under 200ms, handles settlement flows, and securely isolates sensitive cardholder information.
System Designpaymentslow-latencysecuritydata-architecture - Statistics & ExperimentsMediumModel answerComputing Percentiles from Aggregated Histogram Data
Given histogram buckets with counts, estimate a percentile value by finding the containing bucket and interpolating within it under distributional assumptions.
Statistics & Experimentsstatisticspercentileshistogramsinterpolation - Statistics & ExperimentsHardModel answerDesigning A/B Tests and Metrics for Subscription Paywalls
Define success metrics, instrumentation, experimental framework, and statistical power calculations for testing subscription product changes.
Statistics & Experimentsexperimentationmetricsa-b-testingstatistics - System DesignMediumModel answerOrg Tree Reporting Hierarchy Count Service
Design a system to efficiently query total subordinate counts in a corporate hierarchy while handling organizational structure changes.
System Designtreescachingdistributed-systemsdata-modeling - Math & Bit ManipulationEasyAuto-gradedCalculate Weight in a Nested Balanced Mobile System
Tests systematic application of balance constraints in a multi-level mobile where equal-arm bars divide weight evenly.
Math & Bit Manipulationalgebrarecursionmathlogic - Greedy & IntervalsMediumAuto-gradedCombine Overlapping Intervals
Tests interval merging through sorting and linear scanning, focusing on edge-case handling for touching and nested ranges.
Greedy & Intervalsintervalssortingarrays - Trees & GraphsMediumAuto-gradedMinimum-Length Root-to-Leaf Path with Target Sum
Tests tree traversal with state tracking to identify the shortest valid path satisfying a sum condition.
Trees & Graphsbinary-treedfspath-finding - System DesignHardModel answerBuild a durable task scheduler with delayed execution
Design a scheduler that runs jobs after a specified delay, with APIs, data structures, persistence, concurrency control, and recovery.
System Designlow-level-designschedulingconcurrencydurability - Math & Bit ManipulationEasyAuto-gradedDigital Root via Modular Arithmetic
Tests understanding of modular arithmetic by computing the digital root of a large integer without repeatedly summing digits in a loop.
Math & Bit Manipulationmathmodular arithmeticnumber theory - Machine LearningMediumModel answerBuild a Clustering Algorithm and Analyze Its Behavior
Write a clustering algorithm that groups data points iteratively, then explain the cost function it optimizes and why it terminates.
Machine Learningclusteringunsupervised-learningoptimizationalgorithms - System DesignHardModel answerBuilding Production HTTP APIs for ML Model Serving
Design a production-grade REST API for serving machine learning predictions on images, covering endpoints, schemas, auth, reliability, and safety.
System Designapi-designmachine-learningrestauthentication - Data Structure DesignMediumModel answerArea-Weighted Random Point Sampling Across Multiple Squares
Design a class for uniform random point sampling inside a square, then extend it to sample uniformly from the union of N non-overlapping squares.
Data Structure Designprobabilityprefix-sumssamplinggeometry - System DesignMediumModel answerDesign an LLM Inference Gateway with Request Batching
Design a production gateway that receives streaming LLM requests, batches them efficiently, routes to GPU backends, and handles autoscaling under bursty traffic.
System Designsystem designLLM servinginferencebatching - Statistics & ExperimentsMediumModel answerDesigning a Conversion Experiment for a Product Page Redesign
Plan a rigorous experiment to test whether a redesigned product page increases user conversions, covering metrics, sample sizing, bias mitigation, and analysis.
Statistics & Experimentsab-testingexperimentationmetricscausal-inference - Trees & GraphsMediumAuto-gradedSignal Propagation Time to All Destinations
Tests understanding of multi-source BFS to compute the longest shortest path from any source to all required destinations on a grid with obstacles.
Trees & Graphsbreadth-first-searchgridmulti-source-bfsshortest-path - BehavioralMediumModel answerExplaining Contractor vs Full-Time Employment History
Describe your employment arrangement, ownership scope, and accountability when your work history includes vendor or contract positions.
Behavioralcommunicationleadershipintegrity - Statistics & ExperimentsMediumModel answerConcurrent Ranking Experiments: Design, Overlap, and Interaction
Design and analyze two simultaneous A/B tests that both affect a layered product-and-shelf display, handling overlapping traffic and interaction effects.
Statistics & Experimentsa/b testingexperiment designinteraction effectscausal inference - BehavioralEasyModel answerDisagreeing with a Teammate on Technical Approach
Demonstrate how you navigate a technical disagreement with a peer while keeping the team moving and relationships intact.
Behavioralbehavioralconflict resolutionteamworkcommunication - System DesignHardModel answerDebug and Fix a Spring Boot Movie Search Across Five Rules
Repair a broken Spring Boot search endpoint so it handles partial case-insensitive matching, field targeting, popularity ordering, and a published-only filter.
System Designspring-bootdebuggingjpasearch - Arrays & HashingHardAuto-gradedSurvey Gender Distribution Probability
Compute probabilities of observing specific gender counts in survey samples under binomial and hypergeometric models.
Arrays & Hashingprobabilitystatisticscombinatorics - Arrays & HashingHardAuto-gradedClassify Queries by Nearest Reference After Linear Transform
Tests vectorized linear projection, pairwise distance computation, and nearest-neighbor selection with tie-breaking.
Arrays & Hashingmatrix-operationsdistance-metricsvectorization - Arrays & HashingMediumAuto-gradedCount Contiguous Segments Summing to K
Tests efficient subarray counting using prefix sum differences tracked in a hash map.
Arrays & Hashingprefix-sumhash-mapsubarray - Machine LearningMediumModel answerBuild a Log Structuring Pipeline with LLM-Generated Parsers
Design a scalable system that transforms unstructured log lines into structured JSON using LLM-generated regex parsers cached for high-volume processing.
Machine Learningml-systemsdata-pipelinesparsingproduction-ml - Arrays & HashingMediumAuto-gradedFour Utility Functions: Crop, Softmax, Gaussian, Triangle
Tests array slicing, numerical stability in exponential calculations, 2D kernel generation, and geometric inequality validation in a single bundled function.
Arrays & Hashingmathnumerical-methodsgeometry - Data Structure DesignHardModel answerBuild an Idempotent Financial Account System
Create an in-memory account manager that enforces balance rules, prevents duplicate processing via transaction IDs, and detects conflicting retries.
Data Structure Designfinancial-systemsidempotencydata-structuresstate-management - Heaps, Sorting & SearchHardAuto-gradedBuild a Min-Heap and Schedule Tasks by Priority
Construct a working min-heap from scratch, then apply it to schedule dependent tasks in lexicographic order while detecting cycles.
Heaps, Sorting & Searchheaptopological-sortgraphdata-structures