practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5974 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.
- 5974
- Problems
- 2212
- Auto-graded
- 15
- Topics
- 269
- Added today
Showing 3601–3630 of 3762 results
- Data Structure DesignMediumModel answerBanking API with Thread-Safe Account Operations
Build a thread-safe banking system supporting account creation, deposits, and transfers with atomic balance updates.
Data Structure Designconcurrencythreadinglocksdata-structures - Machine LearningMediumModel answerDesigning a Time-Aware Model for User Conversion Prediction
Design an ML system to forecast user purchase likelihood while handling temporal constraints, severe class imbalance, and business-driven precision requirements.
Machine Learningtime-seriesimbalanced-datafeature-engineeringmodel-evaluation - System DesignMediumModel answerDesign an Idempotent Payment Processing Service
Design a payment service that safely retries failed transactions without double-charging customers, handling scale of ~10,000 transactions per second.
System Designsystem designpaymentsidempotencydistributed systems - System DesignHardModel answerBuilding a Staleness Detection System for Job Postings
Design a system to identify and handle outdated job listings through signal aggregation, graduated enforcement, and employer dispute resolution.
System Designdistributed-systemsevent-processingstate-machinesreal-time-systems - BehavioralMediumModel answerDiagnosing Memory Issues in an iOS Video Application
Investigate and resolve memory-related crashes in an iOS video feed app by distinguishing between kernel terminations, retain cycles, and access violations.
Behavioraliosmemory-managementdebuggingmobile - Data Structure DesignMediumModel answerBuild Iterator Abstractions and Composed Traversals
Design an iterator protocol from scratch, implement concrete iterators with different traversal logic, and extend them with features like peeking, filtering, and flattening.
Data Structure Designiteratorsinterface-designlazy-evaluation - Statistics & ExperimentsMediumModel answerDiagnosing a Drop in Mobile Wallet Activity
Systematically investigate a decline in wallet engagement by forming testable hypotheses and identifying data signals that confirm or rule out each explanation.
Statistics & Experimentsmetricsroot-cause-analysisexperimentationdata-quality - System DesignMediumModel answerDesign a High-Concurrency Concert Seat Reservation Platform
Design a ticket booking system that handles millions of simultaneous users competing for limited inventory while preventing double-bookings and race conditions.
System Designhigh-concurrencyinventory-managementdistributed-systemscaching - Data Structure DesignMediumModel answerFix a Ride Dispatch Selection Bug
Reproduce and fix a bug causing incorrect driver-to-order matching in a delivery assignment service.
Data Structure Designdebuggingtestingconcurrencydistributed-systems - Machine LearningHardModel answerModel Selection and Threshold Tuning in Classification Tasks
Analyze cost-sensitive threshold selection, compare ensemble methods for production systems, and explain how regularization penalties shape model weights.
Machine Learningmodel-evaluationensemble-methodsregularizationcost-sensitive-learning - System DesignMediumModel answerReal-Time Multiplayer Canvas Architecture
Build a backend and client sync strategy for a collaborative visual editor where many users edit shapes and objects simultaneously on a shared canvas.
System Designreal-timecollaborationdistributed-systemsconcurrency - Data Structure DesignMediumModel answerBuild a Concurrent Batch Transform Engine with Error Isolation
Create a worker-pool-based processor that applies transformation pipelines to 2D integer grids, ensuring failures in individual items don't affect others.
Data Structure Designconcurrencyerror-handlingthreading - BehavioralMediumModel answerReflecting on a Major Mistake and Its Lasting Impact
Discuss a meaningful professional error, your immediate response, and the permanent safeguards or habits you established afterward.
Behavioralaccountabilitygrowth-mindsetincident-response - System DesignMediumModel answerBuild a Scalable Streaming LLM API
Design an API that streams LLM responses, starting simple and adding reliability, overload protection, and conversation state.
System Designstreamingllmavailabilitybackpressure - System DesignMediumModel answerReal-Time Ad Click Deduplication System
Design a distributed system that ingests millions of ad clicks per second, eliminates duplicate events, and provides accurate near-real-time counts.
System Designdistributed-systemsstreamingdeduplicationhigh-throughput - Statistics & ExperimentsMediumModel answerProduct Analytics: Theme Performance Strategy & Experimentation
Design metrics, prioritize improvements, and plan experiments to optimize a declining e-commerce theme based on funnel and cohort data.
Statistics & Experimentsmetricsexperimentationproduct-analytics - Machine LearningHardModel answerAnomaly Detection for Fraud: Methods and Evaluation Strategy
Design an anomaly-based fraud detection system, select appropriate techniques, and define evaluation metrics when ground-truth labels are limited or biased.
Machine Learninganomaly-detectionfraudevaluation-metricsunsupervised-learning - BehavioralMediumModel answerReducing Failed Deliveries Due to Address Issues
Analyze why deliveries fail from ambiguous addresses and propose solutions spanning prevention, detection, and courier support.
Behavioralproduct-thinkingoperationsroot-cause-analysismetrics - System DesignMediumModel answerMinimize broadcast time for 100 GB file to 1,000 cluster nodes
Design a fast file distribution system to deliver a 100 GB checkpoint from one origin to 1,000 workers, minimizing total transfer time.
System Designdistributed-systemsnetworkingfile-distributionperformance - System DesignHardModel answerShared GPU Cluster Scheduler for ML Training Jobs
Design a multi-tenant platform that accepts ML training job submissions, schedules them fairly across a heterogeneous GPU fleet, and handles failures gracefully.
System Designgpuschedulingdistributed-systemsfairness - System DesignEasyModel answerIdentifying Weaknesses in a Simple Web Service Architecture
Analyze a basic web application topology and recommend architectural improvements for scalability, reliability, and fault tolerance.
System Designarchitecturescalabilityreliabilityfault-tolerance - Statistics & ExperimentsMediumModel answerPayment Transaction Frequency: Launch Phase Distribution
Describe the expected distribution of transaction counts per user in the first month of a payment feature rollout, locate key percentiles, and explain evolution.
Statistics & Experimentsdistribution-analysisskewnessproduct-metrics - System DesignMediumModel answerE-Commerce Catalog and Inventory Management System Design
Build a scalable service handling product information, pricing logic, and stock management with high read throughput and strong checkout consistency.
System Designe-commercedistributed-systemscachingdatabase-design - Heaps, Sorting & SearchMediumModel answerBinary Search Optimization and Interval Consolidation
Find the minimal rate to process items within a time limit, then consolidate overlapping ranges into non-overlapping spans.
Heaps, Sorting & Searchbinary-searchintervalsgreedyoptimization - Machine LearningMediumModel answerBuilding Dual-Surface Content Recommendation Systems
Design a recommendation platform that serves both an on-demand content feed and selective push notifications, balancing relevance with user attention costs.
Machine Learningrecommendation-systemsrankingpersonalizationml-infrastructure - SQL & DataMediumModel answerDriver Earnings Calculator with Time Overlap Handling
Build a pay calculator that validates delivery records, merges overlapping time windows, and computes driver earnings using configurable rate rules.
SQL & Datadata-validationtime-intervalsaggregation - BehavioralMediumModel answerNavigating Cross-Team Misalignment and Stakeholder Conflicts
Describe a past collaboration with multiple teams where unclear requirements caused problems, explain your resolution approach, and outline your method for aligning stakeholders with opposing views.
Behavioralcollaborationconflict-resolutioncommunicationleadership - Arrays & HashingMediumModel answerChess Queen Line-of-Sight Attack Counting
Calculate how many chess queens can attack each query position, first without obstacles, then accounting for blocking pieces on the board.
Arrays & Hashinggeometryhash-mapbinary-searchsorting - Machine LearningHardModel answerBuilding a Secure Enterprise Knowledge Search System
Design a search system that answers questions from internal documents with citations while enforcing access permissions and preventing security exploits.
Machine Learningretrievalsecurityragnlp - BehavioralMediumModel answerStructuring Past Project Answers for Data Science Interviews
Craft clear, concise responses about your technical projects for data science roles, emphasizing impact, problem-solving, and collaboration.
Behavioralbehavioralcommunicationdata-science