practice a little every day — you've got this ♡
Coding Interview Problems
Practice 5981 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.
- 5981
- Problems
- 2215
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 1921–1950 of 2115 results
- Data Structure DesignEasyAuto-gradedCount Requests Within a Sliding Time Window
Tests ability to implement a sliding-window rate limiter by counting how many past requests fall within a fixed-duration window ending at each query timestamp.
Data Structure Designdata structuressliding windowrate limiter - Math & Bit ManipulationMediumAuto-gradedCalculate Power Plant Economics and Renewable Breakeven
Tests break-even analysis, contribution margin calculations, capacity constraints, and financial comparison of energy generation alternatives.
Math & Bit Manipulationbreak-even analysisprofit calculationbusiness metrics - Arrays & HashingMediumAuto-gradedTrace a Named Value Through a Chain of Symbol Bindings
Tests whether a candidate can resolve a target symbol to its integer value by following an arbitrarily ordered, acyclic chain of name-to-name and name-to-literal bindings.
Arrays & Hashinghash-mapstring-parsingsimulation - Greedy & IntervalsMediumAuto-gradedMerge Overlapping Regions from Two Sorted Interval Lists
Tests two-pointer traversal on sorted interval lists to find all pairwise overlaps in linear time.
Greedy & Intervalsintervalstwo-pointerssortingarrays - Arrays & HashingMediumAuto-gradedDelivery Experiment Design: Sample Size and Error Control
Tests ability to calculate sample sizes for superiority and non-inferiority tests, apply multiple-testing corrections, adjust for clustering, and explain sequential monitoring.
Arrays & Hashingstatisticsexperimental-designhypothesis-testingsample-size - Math & Bit ManipulationEasyAuto-gradedBuild the Hailstone Number Chain
Simulating an iterative number transformation until a fixed point is reached, handling boundary conditions and large intermediate values.
Math & Bit Manipulationsimulationiterationmathematical-sequences - StringsMediumAuto-gradedStrict Numeric String Recognizer
Tests whether candidates can implement a precise single-pass parser that accepts only well-formed integers, decimals, and scientific notation strings.
Stringsstringsparsingtwo-pointers - StringsEasyAuto-gradedGenerate Number Sequence with Divisibility Rules
Tests basic control flow, modular arithmetic, and string formatting by transforming numbers according to divisibility conditions.
Stringsconditionalsmoduloiteration - Arrays & HashingHardAuto-gradedPlurality and Instant-Runoff Vote Counting
Tests aggregated vote counting, majority detection, and iterative candidate elimination in ranked-choice systems.
Arrays & Hashingsimulationhash-mapvoting-algorithms - Arrays & HashingMediumAuto-gradedRearrange Array to Next Greater Sequence
Tests in-place array manipulation to transform a sequence into its immediate lexicographic successor, wrapping to the smallest arrangement when needed.
Arrays & Hashingarrayspermutationsin-placetwo-pointers - Dynamic ProgrammingMediumAuto-gradedString Reversal with Contiguous Subarray Extremes
Tests string manipulation and dynamic programming through reversing text and finding optimal contiguous subarrays by sum and product.
Dynamic Programmingarraysstringskadanesubarray - StringsMediumAuto-gradedDistribute and Expand Algebraic Products
Tests recursive parsing, the distributive property of multiplication over addition, and constructing expanded expressions from nested operations.
Stringsparsingrecursionstring-manipulation - Math & Bit ManipulationMediumAuto-gradedMaximum Theater Group Seating Capacity
Tests bitmask-based interval availability checking for constrained seat allocation with large input optimization.
Math & Bit Manipulationbitmaskgreedyoptimization - Trees & GraphsMediumAuto-gradedSubtree Sum Replacement in Level-Order Arrays
Tests post-order traversal, heap indexing in complete binary trees, and efficient bottom-up aggregation without recursion.
Trees & Graphsbinary-treespost-order-traversalcomplete-binary-treeaggregation - Data Structure DesignHardAuto-gradedStreaming Median Query
Tests balanced heap design to maintain dynamic order statistics with logarithmic insertions and constant-time median queries.
Data Structure Designheapsdata-structuresstreamingmedian - Arrays & HashingHardAuto-gradedRandom Transfer Between Two Queues: Drain Time and Odds
Tests ability to model a lazy symmetric random walk as a Markov chain, derive a closed-form hitting-time formula, and compute absorption probabilities analytically.
Arrays & Hashingmarkov-chainsrandom-walkprobability - Trees & GraphsHardAuto-gradedEarliest Moment a Social Network Becomes Fully Connected
Tests offline dynamic graph connectivity using a segment-tree-over-time with a rollback-capable union-find to handle both edge insertions and deletions.
Trees & Graphsunion-findsegment-treedynamic-connectivity - Heaps, Sorting & SearchEasyAuto-gradedMinimum Largest Piece After K Cuts on a Log
Tests binary search on the answer to find the minimum possible largest piece when splitting a log into at least K+1 pieces.
Heaps, Sorting & Searchbinary searchgreedysorting - Dynamic ProgrammingMediumAuto-gradedPack Exactly K Items with Maximum Total Value
Tests the candidate's ability to apply a 2D knapsack variant requiring exactly a fixed item count while maximizing value, combining count and capacity constraints via DP.
Dynamic Programmingdynamic programmingknapsack2d dp - Heaps, Sorting & SearchMediumAuto-gradedCount Active Users in Trailing Time Window
Tests binary search on sorted lists to efficiently count distinct entities with at least one event in a sliding time range.
Heaps, Sorting & Searchbinary-searchtime-seriessliding-window - Arrays & HashingMediumAuto-gradedBalance and Settle Shared Costs
Tests the ability to calculate net balances from shared expense records and generate transfers that zero out all debts.
Arrays & Hashinghash-mapgreedysimulation - Data Structure DesignMediumAuto-gradedBilling Ledger with Credit Prioritization and Backdating
Process billing events where credits pay usage before subscription fees, supporting out-of-order event insertion with selective recomputation.
Data Structure Designdata-structuressimulationordered-data - StringsMediumAuto-gradedMinimum Window with K Distinct Characters
Tests sliding window technique with character frequency tracking to find the smallest substring containing exactly k distinct characters.
Stringssliding-windowhash-maptwo-pointers - Trees & GraphsMediumAuto-gradedSchedule Tasks With Resource Unlock Dependencies
Tests ability to apply topological ordering to determine a valid execution sequence of tasks where each task may unlock resources required by others.
Trees & Graphsgraphstopological sortDAGKahn's algorithm - Greedy & IntervalsMediumAuto-gradedLocate Uncovered Ranges Between Intervals
Tests interval merging, sorting, and boundary logic to identify all missing integer ranges within the overall coverage span.
Greedy & Intervalsintervalssortingmergingranges - Arrays & HashingMediumAuto-gradedBalance Point Count in a Weighted Sensor Array
Tests the ability to use prefix sums to efficiently count indices where the weighted sum to the left equals the weighted sum to the right.
Arrays & Hashingarraysprefix sumshash maps - Heaps, Sorting & SearchEasyAuto-gradedRunning Median After Each Insertion
Tests median maintenance using two heaps to efficiently return the running median after each element is added to a growing sequence.
Heaps, Sorting & Searchheapssortingmedian maintenance - Arrays & HashingMediumAuto-gradedMaximum Straight-Line Distance Through Dangerous Zones
Tests efficient grid reasoning with blocked regions and directional movement constraints using binary search.
Arrays & Hashingbinary-searchgridgeometry - Arrays & HashingMediumAuto-gradedKeep First Occurrence of Each Element
Tests understanding of hash-based deduplication while maintaining insertion order in a single pass through an array.
Arrays & Hashingarrayshash-setdeduplicationorder-preservation - Data Structure DesignMediumAuto-gradedTime-Aware Key-Field Store with Expiration
Tests ability to implement an in-memory store with nested key-field structure, lexicographic scanning, timestamps, and TTL-based expiration logic.
Data Structure Designhash-mapsimulationtime-based-expiration