practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5991 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.
- 5991
- Problems
- 2219
- Auto-graded
- 15
- Topics
- 270
- Added today
Showing 3361–3390 of 3772 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 - 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 - 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 - 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 - 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 - 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 - System DesignMediumModel answerSelf-Destructing Chat Messages: System Architecture
Build a messaging platform where messages automatically vanish after being read, supporting multiple devices, offline scenarios, and abuse prevention.
System Designmessagingdistributed-systemsreal-timesecurity - System DesignMediumModel answerDesign an Event Deduplication and Reconciliation Pipeline
Design a distributed pipeline that deduplicates high-volume event streams, reconciles them against a delayed authoritative source, and produces auditable daily aggregates.
System Designstreamingidempotencydeduplicationreconciliation - BehavioralMediumModel answerData Error Recovery and Process Automation in Analytics
Demonstrate ownership after discovering a data quality issue, plus a concrete example of reducing repetitive work through automation or self-service tooling.
Behavioralleadershipdata-qualityprocess-improvement - System DesignMediumModel answerFull-Stack Comment CRUD and Async Image Pipeline
Build a comment system with sort persistence and an image-generation service that handles long-running GPU jobs with reliable ordering and status delivery.
System Designcrudasync-jobspaginationpersistence - BehavioralMediumModel answerManaging QA Work When Deadlines Compress Testing Time
Explain how you prioritize and execute testing activities when time constraints threaten coverage, using a specific example with measurable outcomes.
Behavioralqa-engineeringprioritizationrisk-managementcommunication - System DesignMediumModel answerBuild a Multi-Step Job Execution Engine with Dependency Management
Design a system that executes jobs composed of dependent tasks, managing state, handling failures, and coordinating parallel work across distributed workers.
System Designdistributed-systemsorchestrationstate-machinesreliability - Statistics & ExperimentsMediumModel answerMeasuring Push Notification Value and Testing a New Feature Alert
Design metrics and experiments to assess whether notifications help or hurt users, then decide whether to ship a friend-activity alert.
Statistics & ExperimentsA/B testingproduct metricsexperimentationcausal inference - Trees & GraphsMediumModel answerWeighted Grid Navigation: Minimum Cost Path Around Walls
Find the cheapest path through a cost-weighted grid containing impassable walls, returning the total cost and route, or -1 if no path exists.
Trees & Graphsdijkstrapriority-queueshortest-pathgrid - Data Structure DesignHardModel answerDesign a Thread-Safe Resource Pool with RAII Handles
Build a concurrent object pool in C++ that safely manages reusable resources with blocking acquisition, automatic return via RAII, and graceful shutdown.
Data Structure Designconcurrencyc++raiithread-safety - Machine LearningMediumModel answerArchitecture and Ensemble Trade-offs for Text Classifiers
Compare sequential and attention-based architectures for long-text classification, then explain variance vs bias reduction in ensemble methods.
Machine Learningdeep-learningnlpensemblesmodel-selection