practice a little every day — you've got this ♡
Coding Interview Problems
Practice 5993 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.
- 5993
- Problems
- 2220
- Auto-graded
- 15
- Topics
- 270
- Added today
Showing 1741–1770 of 2120 results
- Arrays & HashingMediumAuto-gradedCompute Speeding Penalties from Trajectory Data
Measures violations of a velocity threshold by calculating duration and magnitude of excess speed from sampled position sequences.
Arrays & Hashingarrayssimulationnumerical-methods - Heaps, Sorting & SearchMediumAuto-gradedK Nearest Value Pairs in a Sorted Sequence
Tests whether a candidate can efficiently extract the k pairs with smallest gap from a sorted array using a heap-based k-way merge instead of brute force enumeration.
Heaps, Sorting & Searchheapsortingtwo-pointersarrays - Data Structure DesignMediumAuto-gradedCircular Buffer with Fixed Capacity
Tests implementation of a bounded FIFO queue using circular array indexing with constant-time operations.
Data Structure Designqueuecircular-bufferarraydata-structure-design - Data Structure DesignEasyAuto-gradedExecute Turn-Based Movement Commands on a Line
Tests state tracking and rule validation for alternating player moves on a bounded one-dimensional board.
Data Structure Designsimulationstate-machinevalidation - Trees & GraphsMediumAuto-gradedNetwork Unification Timestamp
Tests Union-Find data structure application to track dynamic graph connectivity and determine when all nodes merge into one component.
Trees & Graphsunion-finddisjoint-setgraph-connectivity - Arrays & HashingMediumAuto-gradedBinary Classifier Threshold & Cost Trade-off Calculator
Tests whether candidates can compute F1, confusion matrix counts, and deployment cost for two classifier configurations, then select the cheaper model to deploy.
Arrays & Hashingmachine-learningclassificationevaluation-metrics - Trees & GraphsHardAuto-gradedMinimum Steps to Collect All Keys in a Grid Maze
Tests BFS shortest path on a grid where state must encode both position and the set of collected keys, requiring multi-dimensional state space exploration.
Trees & Graphsgraphsbfsgridbitmask - Math & Bit ManipulationMediumAuto-gradedParse Mixed-Endian Binary Protocol Fields
Tests byte-level manipulation to extract little-endian and big-endian integers from a raw byte buffer without relying on architecture-specific memory layout.
Math & Bit Manipulationbit-manipulationbytesendianness - Arrays & HashingEasyAuto-gradedAssign Each Person a Tracked ID or a Fallback Value
Tests left-join logic and fallback lookups by requiring every person to appear with either their mapped ID or a supplied default.
Arrays & Hashinghash-maplookupleft-join - Stacks & QueuesMediumAuto-gradedEvaluate Arithmetic Expression with Operator Precedence
Tests implementation of expression evaluation using stacks to handle operator precedence and parentheses correctly.
Stacks & Queuesstackexpression-parsingoperator-precedence - Data Structure DesignMediumAuto-gradedCompute Credit Ledger with Expiration
Implement an in-memory ledger that manages time-limited credits with priority expiration and debt tracking.
Data Structure Designheappriority-queuesimulation - StringsMediumAuto-gradedTrending Tags in Time Window
Tests filtering by time range, frequency counting with a dictionary, and sorting with multi-level tie-breaking rules.
Stringshash-mapsortingstring-parsing - Data Structure DesignEasyAuto-gradedMulti-User File System with Snapshots and Account Consolidation
Build an in-memory file storage system with per-user quotas, global file uniqueness, ranked retrieval, account merging, and atomic snapshot restore.
Data Structure Designhash-mapsimulationdata-structure-design - Arrays & HashingMediumAuto-gradedAmusement Park Capacity Expansion: Profit & Expected Value
Tests financial modeling with expected-value decision-making, break-even sensitivity analysis, and revenue-based fee structures across expansion scenarios.
Arrays & Hashingexpected-valuefinancial-modelingsensitivity-analysis - Math & Bit ManipulationMediumAuto-gradedMatch IP Address to Network Block
Tests bitwise operations on IPv4 addresses, CIDR prefix matching, and linear search with early termination.
Math & Bit Manipulationbit-manipulationipv4networkinglinear-search - Data Structure DesignMediumAuto-gradedIncremental Entropy Tracker for Categorical Streams
Build a data structure that efficiently computes Shannon entropy after each new categorical observation arrives.
Data Structure Designstreamingentropyincremental-computation - Math & Bit ManipulationMediumAuto-gradedCalculate Emergency Braking Distance and Decision
Tests understanding of kinematic equations, motion physics, and numerical reasoning to determine whether a vehicle can stop in time given speed, obstacle distance, deceleration, and reaction delay.
Math & Bit Manipulationphysicskinematicsnumerical-reasoning - Stacks & QueuesMediumAuto-gradedCompute Arithmetic Expression with Operator Precedence
Tests ability to parse and evaluate arithmetic expressions respecting operator precedence and left-to-right associativity without built-in eval.
Stacks & Queuesparsingoperator-precedencemathstring-processing - Arrays & HashingMediumAuto-gradedClassify Kernel Bottlenecks Using the Roofline Model
Determine whether computational kernels are limited by arithmetic throughput or memory bandwidth using roofline analysis.
Arrays & Hashingroofline-modelperformance-analysismemory-bandwidthcompute-bound - Data Structure DesignMediumAuto-gradedRequest Quota Tracker with Rolling Time Windows
Tests your ability to track request counts per user within a sliding time window using efficient data structures.
Data Structure Designsliding-windowqueuerate-limiting - Stacks & QueuesMediumAuto-gradedDays Until Higher Temperature
Tests efficient computation of the distance to the next strictly greater element using a monotonic stack to achieve linear time complexity.
Stacks & Queuesmonotonic-stacknext-greater-elementarrays - Math & Bit ManipulationMediumAuto-gradedResidue Distribution of Dice Sums and 2×2 Stochastic Determinants
Tests whether a candidate can compute modular probability distributions over two-dice outcomes and derive the determinant formula for a constrained matrix class.
Math & Bit Manipulationprobabilitylinear-algebramodular-arithmetic - Arrays & HashingMediumAuto-gradedTop-K Document Retrieval by Cosine Similarity
Tests vector similarity computation, efficient top-k selection with deterministic tie-breaking, and understanding of distance metrics in embedding spaces.
Arrays & Hashingvectorssimilarityrankingnumerical-methods - Arrays & HashingMediumAuto-gradedAdd One to Array-Represented Number
Tests array manipulation and carry logic when adding one to a number stored as an array of digits.
Arrays & Hashingarrayssimulationmath - Greedy & IntervalsMediumAuto-gradedPeak Overlap Point Across Closed Intervals
Tests whether a candidate can use sweep-line event counting to locate the smallest integer covered by the greatest number of closed intervals.
Greedy & Intervalssweep-lineintervalsdifference-array - Arrays & HashingHardAuto-gradedMaximum Likelihood Estimation for Uniform Distribution Bounds
Tests understanding of MLE derivation for bounded distributions and bias correction in parameter estimation.
Arrays & Hashingstatisticsestimationprobabilitymle - StringsEasyAuto-gradedSum Two Arbitrarily Large Signed Integers as Strings
Tests digit-by-digit arithmetic with sign handling and carry/borrow logic for adding very large signed integers represented as strings.
Stringsstring-manipulationmathdigit-arithmetic - Greedy & IntervalsEasyAuto-gradedSchedule Maximum Jobs Within Deadlines
Tests the classic greedy exchange-argument insight: sort jobs by deadline to maximise the number of unit-length jobs completed before their deadlines.
Greedy & Intervalsgreedyintervalssorting - Greedy & IntervalsMediumAuto-gradedCount Valid Sum Pairs
Tests greedy two-pointer technique on sorted arrays to maximize disjoint pairs meeting a sum condition.
Greedy & Intervalstwo-pointersgreedysorting - Data Structure DesignMediumAuto-gradedBuild a Fixed-Size Cache That Forgets the Least-Used Entry
Tests your ability to combine a hash map and an ordered structure to implement O(1) reads and writes with recency-based eviction.
Data Structure Designhash-maplinked-listcachedesign