practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6013 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.
- 6013
- Problems
- 2228
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 5191–5220 of 6013 results
- Arrays & HashingMediumAuto-gradedOrganize Matrix Rings by Sorting Perimeters
Tests matrix traversal and boundary extraction by sorting each rectangular ring of a matrix independently in clockwise order.
Arrays & Hashingmatrixtraversalsorting - Arrays & HashingMediumAuto-gradedCount Occurrences in Fixed-Size Subarrays
Tests efficient sliding window maintenance to track element frequency across consecutive fixed-length subarrays.
Arrays & Hashingsliding-windowarrayfrequency-counting - System DesignMediumModel answerReal-Time Chat Delivery for Live Broadcasts
Design a low-latency comment system that fans out viewer messages to millions of concurrent watchers during a live video stream.
System Designreal-timepub-subwebsocketsfanout - Data Structure DesignMediumModel answerComplete Concrete Classes in an Abstract Base Hierarchy
Implement missing methods in concrete subclasses that inherit from abstract base classes while maintaining type safety and LSP compliance.
Data Structure Designobject-oriented-designinheritanceabstractiondesign-patterns - System DesignMediumModel answerBuilding a Large-Scale Internet Page Fetcher
Design an architecture to retrieve and store billions of web pages while respecting site policies and handling failures gracefully.
System Designdistributed-systemsscalabilityfault-tolerance - System DesignMediumModel answerBuilding a Fault-Tolerant Aggregation Layer for Mobile App Startup
Design an API that combines data from multiple backend services into one response, handling failures gracefully when services are down or slow.
System Designmicroservicesfault-toleranceapi-designorchestration - Statistics & ExperimentsMediumModel answerTeller Line Design: Pooled Queue vs Parallel Queues
Compare waiting time, variance, and throughput for a shared single-line system versus independent per-server queues, and design a validation study.
Statistics & Experimentsqueueing theoryprobabilityexperimental designoperations - System DesignMediumModel answerHandling Partial Failure in a Payment Service Method
Analyze a Java method that charges a payment provider then writes to a database, identifying failure scenarios and proposing fixes for consistency.
System Designdistributed-systemsidempotencyerror-handling - Arrays & HashingEasyAuto-gradedQualifying Run Detector in a Timestamped Event Log
Tests whether a candidate can scan a sorted event log in one pass to count maximal same-type runs that meet minimum length and duration thresholds.
Arrays & Hashingarrayssliding-windowsimulation - System DesignHardModel answerFleet Command Dispatch and Telemetry Reconciliation at Scale
Design a durable, idempotent command pipeline and telemetry reconciliation engine for five million intermittently connected edge devices.
System Designdistributed-systemsedge-computingidempotencytelemetry - Arrays & HashingEasyAuto-gradedClone a List with Index-Based Cross References
Tests your ability to perform a deep copy of a nested list structure while preserving integer-indexed references between elements.
Arrays & Hashingarraysdeep-copylist-manipulation - Machine LearningHardModel answerDesigning a Critic-Free RL Pipeline for Training Reasoning Models
Build a post-training system for a 70B reasoning LLM using group-relative optimization, exploring advantage estimation, memory efficiency, and reward design.
Machine Learningreinforcement-learningllm-trainingoptimizationdistributed-systems - Machine LearningHardModel answerPredict customer spend with zero-inflated heavy-tailed regression
Build a complete pipeline to forecast 90-day customer value from marketing and behavioral data, addressing zero inflation, multicollinearity, and leakage.
Machine Learningregressionfeature-engineeringmodel-validationinterpretability - BehavioralMediumModel answerStaying Close to the Details: Diagnosing Complex Team Problems
Two behavioral prompts on hands-on investigation: untangling a problem your team couldn't fully explain, and tracing a symptom past its first misleading cause.
Behavioraldive deeproot cause analysisdebuggingownership - Greedy & IntervalsMediumAuto-gradedTask Scheduler with Cooldown Periods
Tests greedy scheduling with frequency counting to compute minimum execution time under per-task-type cooldown constraints.
Greedy & Intervalsgreedyfrequency-countingscheduling - Data Structure DesignMediumAuto-gradedFlatten and Filter a Nested Configuration Tree
Tests the ability to write an iterator-style traversal over arbitrarily nested dicts and lists to extract leaf values matching a type filter.
Data Structure Designdata structuresrecursioniteratorsnested data - Math & Bit ManipulationEasyAuto-gradedUnit Sales Target After Fixed Cost Increase
Tests cost-volume-profit analysis by computing last period's profit and the sales volume needed to maintain that profit when fixed costs rise.
Math & Bit Manipulationmathbusiness-logicformulas - Arrays & HashingEasyAuto-gradedAlign Temperature Readings with Prior Humidity Data
Tests ability to perform temporal joins on sorted time-series data with per-key state tracking and careful timestamp comparison.
Arrays & Hashingtime-seriestwo-pointershash-table - Data Structure DesignMediumAuto-gradedSimulate a Price-Level Tracker for Buy and Sell Orders
Tests your ability to combine a hash map with a lazy-deletion heap to track best bid and ask prices across a sequence of order book operations.
Data Structure Designheaphash-maplazy-deletionsimulation - System DesignMediumModel answerSizing a Credit-Line Expansion: P&L and Experiment Design
Model the incremental profit of raising credit limits for a customer segment, then design an experiment to validate the decision before a full rollout.
System Designunit-economicscredit-riskexperiment-designproduct-analytics - Greedy & IntervalsMediumAuto-gradedBalance Wealth Through Optimal Integer Transfers
Tests greedy two-pointer coordination and integer division to equalize values with minimal movement.
Greedy & Intervalsgreedytwo-pointersmathsimulation - System DesignMediumModel answerBuild a GPU-Based Model Serving System
Design a service that exposes a trained ML model over an API, routes requests to GPU workers, and maximizes hardware utilization.
System Designmachine-learningdistributed-systemsapi-design - System DesignMediumModel answerBuilding a Transaction Dispute Resolution System
Design a backend system to manage the complete lifecycle of payment disputes in an e-commerce marketplace, including evidence handling, deadline management, and financial settlements.
System Designdistributed-systemsfinancial-systemsstate-machinesconsistency - BehavioralMediumModel answerOwnership, Collaboration, and Leading a Project End-to-End
Three senior behavioral prompts testing accountability beyond your role, lifting teammates, and leading a real project through deep-dive follow-up questions.
Behavioralownershipcollaborationleadershipsenior-engineer - Greedy & IntervalsMediumAuto-gradedMinimum Transfers to Rebalance a Four-Zone Warehouse
Tests whether you can compute the minimum number of item relocations to rebalance inventory across four warehouse zones using surplus/deficit reasoning.
Greedy & Intervalsgreedyarraysoptimization - SQL & DataMediumModel answerDetect and Remove Daily Revenue Outliers by Product
Build a pandas pipeline that aggregates raw sales records, flags per-product outliers using IQR or Z-score, then plots the distribution before and after cleaning.
SQL & Datapandasoutlier-detectiondata-cleaningmatplotlib - Arrays & HashingMediumAuto-gradedMinimum Round-Trip Cost with Ordered Dates
Tests prefix-minimum optimization to select two array indices under ordering constraints while minimizing their combined cost.
Arrays & Hashinggreedyprefix-minimumarray-optimization - Dynamic ProgrammingHardModel answerBalance Mixed Bracket Types with Minimum Deletions
Delete the fewest bracket characters to make all remaining brackets properly matched and nested, keeping all non-bracket characters intact.
Dynamic Programmingdynamic-programmingstringsinterval-dp - Heaps, Sorting & SearchMediumAuto-gradedSelect K Elements with Highest Occurrence Count
Tests frequency counting with hash maps and efficient selection of top elements using heap-based algorithms.
Heaps, Sorting & Searchhash-mapheapcountingfrequency-analysis - Data Structure DesignMediumModel answerBuild a Flexible Tennis Game Score Tracker
Create a scoring system for a single tennis game that records points, displays readable scores, detects game completion, and supports multiple rule variants.
Data Structure Designobject-oriented-designstrategy-patternstate-management