practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5985 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.
- 5985
- Problems
- 2218
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 5671–5700 of 5985 results
- 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 - Greedy & IntervalsMediumAuto-gradedMinimum Deletions to Remove Half the Elements
Tests greedy selection by frequency: choose the fewest distinct values whose total occurrences cover at least half the array.
Greedy & Intervalsgreedyhashingsorting - Trees & GraphsMediumAuto-gradedFind Build Order With Optional Priorities
Tests whether a candidate can produce a valid topological ordering of task dependencies while breaking ties by smallest task ID for determinism.
Trees & Graphsgraphstopological sortBFSKahn's algorithm - 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 - Stacks & QueuesEasyAuto-gradedValidate Nested Tag Pairs in a Markup String
Tests whether candidates can simulate bracket-matching logic with named tags, enforcing strict open/close pairing and proper nesting order.
Stacks & Queuesstacksbracket matchingparsingsimulation - Arrays & HashingMediumAuto-gradedPopulation Size from Two-Sample Overlap
Apply the capture-recapture estimator to infer total population size from overlapping detection counts.
Arrays & Hashingstatisticsestimationprobability - Dynamic ProgrammingMediumAuto-gradedMaximum Profit from Two Stock Transactions
Tests dynamic programming with state transitions to find optimal profit from up to two non-overlapping buy-sell trades given daily stock prices.
Dynamic Programmingarraysstate-machineoptimization - 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 - Heaps, Sorting & SearchMediumAuto-gradedUnique Element Count in Sorted Array with Binary Search
Tests efficient counting of distinct values in a sorted array using binary search to skip duplicate runs, achieving better than linear time complexity.
Heaps, Sorting & Searchbinary-searcharraysoptimization - 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 - Greedy & IntervalsMediumAuto-gradedFill Bag with Maximum Value from Identical-Weight Items
Tests greedy optimization when all items have uniform weight, requiring recognition that standard knapsack DP is unnecessary and handling large counts efficiently.
Greedy & Intervalsgreedysortingoptimization - Data Structure DesignMediumAuto-gradedKey-Value Store with Expiration and Snapshots
Design a nested dictionary with field-level expiration times and the ability to capture and restore database snapshots.
Data Structure Designhash-tablesimulationdata-structure-design - Arrays & HashingMediumAuto-gradedEvent Log Analysis: Distinct Users and Session Duration
Tests grouping, deduplication, and timestamp arithmetic over semi-structured event records.
Arrays & Hashinggroupingaggregationtimestampsdata-wrangling - Dynamic ProgrammingHardAuto-gradedPeak Subsequence Maximum Sum
Tests dynamic programming with coordinate compression and Fenwick trees to efficiently compute optimal bitonic subsequences.
Dynamic Programmingdynamic-programmingfenwick-treecoordinate-compressionbitonic-sequence - Dynamic ProgrammingHardAuto-gradedMinimum-Cost Path with Fuel Stops on a Grid
Tests grid DP with an extra state dimension: navigate an N×M grid from top-left to bottom-right tracking remaining fuel, refueling at marked cells, minimizing total toll cost.
Dynamic Programmingdynamic programminggridstatememoization - 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 - Arrays & HashingMediumAuto-gradedRide Service Demand Under Weather Conditions
Apply the Law of Total Probability and Bayes' Theorem to compute ride request likelihoods and conditional weather probabilities.
Arrays & Hashingprobabilitybayes-theoremconditional-probability - 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