practice a little every day — you've got this ♡
Coding Interview Problems
Practice 5988 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.
- 5988
- Problems
- 2219
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 1801–1830 of 2119 results
- Arrays & HashingHardAuto-gradedClassify Queries by Nearest Reference After Linear Transform
Tests vectorized linear projection, pairwise distance computation, and nearest-neighbor selection with tie-breaking.
Arrays & Hashingmatrix-operationsdistance-metricsvectorization - Arrays & HashingMediumAuto-gradedCount Contiguous Segments Summing to K
Tests efficient subarray counting using prefix sum differences tracked in a hash map.
Arrays & Hashingprefix-sumhash-mapsubarray - Arrays & HashingMediumAuto-gradedFour Utility Functions: Crop, Softmax, Gaussian, Triangle
Tests array slicing, numerical stability in exponential calculations, 2D kernel generation, and geometric inequality validation in a single bundled function.
Arrays & Hashingmathnumerical-methodsgeometry - Heaps, Sorting & SearchHardAuto-gradedBuild a Min-Heap and Schedule Tasks by Priority
Construct a working min-heap from scratch, then apply it to schedule dependent tasks in lexicographic order while detecting cycles.
Heaps, Sorting & Searchheaptopological-sortgraphdata-structures - Data Structure DesignHardAuto-gradedTime-Versioned Key-Value Storage
Implement a data structure that stores versioned values by timestamp and retrieves the most recent version at or before a query time.
Data Structure Designbinary-searchhash-mapdata-structures - Data Structure DesignMediumAuto-gradedProcess Account Transaction Sequence
Tests ability to implement stateful operations on indexed data with validation, edge-case handling, and multiple operation types.
Data Structure Designsimulationvalidationstate-management - Math & Bit ManipulationMediumAuto-gradedBalanced Digit Sum Across All Bases
Tests understanding of base conversion by summing digits of a number across every base from 2 to b and checking whether each base yields a digit sum equal to a target value.
Math & Bit Manipulationmathbit manipulationbase conversion - Data Structure DesignMediumAuto-gradedCompute Dot Products for Memory-Efficient Integer Vectors
Tests efficient sparse data representation using hash maps and optimizing operations by focusing on non-zero elements only.
Data Structure Designhash-mapsparse-dataoptimization - StringsEasyAuto-gradedCount Distinct Words in a Sentence
Tests the ability to tokenize a raw sentence string into normalized word tokens and count how many distinct words appear exactly once.
Stringsstringstokenizingparsing - Heaps, Sorting & SearchMediumAuto-gradedMinimize the Maximum Delivery Time Across Routes
Tests binary search on the answer combined with greedy feasibility checking to minimize the maximum delivery time when assigning parcels to couriers.
Heaps, Sorting & Searchbinary searchgreedysorting - StringsEasyAuto-gradedCount Distinct Morse Code Representations
Tests string encoding with a fixed mapping, hashing for deduplication, and understanding that identical encodings can arise from different inputs.
Stringshash-setstring-manipulationencoding - Greedy & IntervalsMediumAuto-gradedMaximum Concurrent Reservations
Calculate the peak number of overlapping time intervals to determine minimum resource capacity.
Greedy & Intervalsintervalssweep-linesorting - Trees & GraphsMediumAuto-gradedLowest Shared Ancestor in Organization Hierarchy
Finding the deepest node that lies on the upward path to the root for all given employees in a tree structure.
Trees & Graphstreelowest-common-ancestordepth-first-searchbreadth-first-search - Data Structure DesignHardAuto-gradedSimulate a TTL-Aware LFU Cache with Frequency Snapshots
Tests ability to simulate a multi-operation Least-Frequently-Used cache that evicts expired entries by TTL and breaks ties by recency, while supporting frequency-snapshot queries.
Data Structure Designdata structurescachesimulation - Arrays & HashingHardAuto-gradedCoin Flip Race: HHT vs HTH Probability and Conditional Wait
Tests whether you can set up a Markov chain for a pattern race, derive absorption probabilities, and compute a conditional expected stopping time.
Arrays & Hashingmarkov-chainsprobabilityexpected-value - Linked ListsMediumAuto-gradedInterleave Two Linked Lists from Their Midpoints
Tests pointer-manipulation reasoning by reordering a singly linked list (given as an array) so nodes alternate between the first and second halves, starting from their respective midpoints.
Linked Listslinked liststwo pointersarray manipulation - Arrays & HashingMediumAuto-gradedMultiply Two Matrices
Tests understanding of matrix multiplication mechanics, nested iteration, and accumulation patterns.
Arrays & Hashingmatrixnested-loopsmath - Heaps, Sorting & SearchMediumAuto-gradedMinimum Bandwidth to Stream All Files Within Deadline
Tests binary search on the answer to find the minimum integer bandwidth that allows streaming a list of files (each with a size and deadline) without missing any deadline using a greedy scheduler.
Heaps, Sorting & Searchbinary searchgreedysorting - Heaps, Sorting & SearchMediumAuto-gradedBuild Three-Color Outfits from Limited Inventory
Tests greedy allocation with heap-based selection and mathematical reasoning about resource constraints under distinct-element requirements.
Heaps, Sorting & Searchgreedyheapcombinatorics - Dynamic ProgrammingMediumAuto-gradedCheck if Text Can Be Built from Dictionary Words
Tests dynamic programming with Trie optimization to determine if a string can be fully decomposed into a sequence of dictionary words.
Dynamic Programmingtriestring-processingmemoization - Math & Bit ManipulationEasyAuto-gradedCalculate Binomial Cumulative Probability for Limited Supply
Tests understanding of binomial distributions and computing cumulative probabilities for discrete independent events.
Math & Bit Manipulationprobabilitybinomial-distributioncombinatorics - Stacks & QueuesMediumAuto-gradedCollapse Matching Neighbors
Tests stack-based simulation to eliminate adjacent equal characters iteratively until no more cancellations are possible.
Stacks & Queuesstackstring-manipulationsimulation - Trees & GraphsHardAuto-gradedFeature Deployment with Integrity Checks and Dependency Ordering
Verify configuration integrity using polynomial hashing, detect dependency cycles with DFS, and produce a lexicographically-ordered topological deployment sequence.
Trees & Graphsgraph-traversaltopological-sorthashingcycle-detection - StringsMediumAuto-gradedIPv4 Address Checker and Builder
Tests string parsing, validation rules, and backtracking to check and generate valid IPv4 addresses from digit strings.
Stringsbacktrackingvalidationstring-processing - Greedy & IntervalsEasyAuto-gradedIntercept Aircraft and Count User Sessions
Tests greedy deadline scheduling for time-critical interception tasks and event grouping with gap-based sessionization.
Greedy & Intervalsgreedysortingsimulationevent-processing - Trees & GraphsHardAuto-gradedBuild Frequency-Based Binary Codec
Tests ability to construct a deterministic frequency tree with tie-breaking, generate prefix-free binary codes, and encode/decode strings.
Trees & Graphstreesheapsgreedybit-manipulation - Arrays & HashingMediumAuto-gradedFind Longest Subarray with Bounded Absolute Difference
Tests the ability to use two pointers alongside auxiliary tracking structures to find the longest contiguous subarray where max−min does not exceed a given threshold.
Arrays & Hashingarraystwo pointerssliding window - Data Structure DesignMediumAuto-gradedBuild a Min-Heap Data Structure from Scratch
Evaluates ability to implement a complete binary min-heap using array indexing, bubble-up, and bubble-down operations without library support.
Data Structure Designheaps-sortingarraysdata-structures - Dynamic ProgrammingMediumAuto-gradedExpected Wait Time and Coin Combination Counting
Tests probability reasoning with independent random events and dynamic programming for combinatorial counting with unlimited resources.
Dynamic Programmingprobabilityexpected-valuecombinatoricsunbounded-knapsack - StringsMediumAuto-gradedMinimum Window Containing All Target Characters
Tests the ability to efficiently find the smallest substring containing all required characters using sliding window and hash tables.
Stringssliding-windowhash-maptwo-pointers