practice a little every day — you've got this ♡
Coding Interview Problems
Practice 5997 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.
- 5997
- Problems
- 2221
- Auto-graded
- 15
- Topics
- 270
- Added today
Showing 1681–1710 of 2121 results
- Data Structure DesignMediumAuto-gradedHierarchical Resource Tree Operations
Tests tree manipulation with parent-child relationships, path reconstruction, and cycle prevention during node relocation.
Data Structure Designtreeshash-mapsgraphscycle-detection - StringsHardAuto-gradedFind Next Larger Palindrome Within Digit Limit
Tests constructing the immediate successor palindrome by manipulating the left half, handling carries, length transitions, and an upper bound.
Stringspalindromesstring-manipulationgreedy - Heaps, Sorting & SearchMediumAuto-gradedCombine K Sorted Sequences into One
Tests whether a candidate can use a min-heap to efficiently merge multiple sorted lists into a single sorted output in O(N log k) time.
Heaps, Sorting & Searchheapmergesorting - StringsMediumAuto-gradedCharacter Removal Anagram Matching
Tests string manipulation and character frequency analysis to determine if two strings can become anagrams through optional single-character removal.
Stringshash-mapcountinganagrams - Trees & GraphsEasyAuto-gradedPaint Bucket: Recolor a 4-Connected Region in a Grid
Tests BFS/DFS grid traversal by spreading a new color through all 4-directionally connected cells sharing the starting cell's original color.
Trees & Graphsbfsgridgraph-traversal - Data Structure DesignMediumAuto-gradedProcess Event Listener Operations
Tests understanding of the observer pattern through ordered listener management, callback registration/removal, and event dispatch simulation.
Data Structure Designobserver-patterndata-structuresstate-management - Trees & GraphsMediumAuto-gradedCluster Interchangeable Words by Surrounding Context
Tests context hashing, union-find for transitive closure, and precise output formatting to group words that are mutually substitutable in identical four-word windows.
Trees & Graphsunion-findhashingstrings - Trees & GraphsMediumAuto-gradedShortest Path Through a Network With Hazardous Nodes
Tests BFS on filtered graphs and Dijkstra with lexicographic two-criteria cost to navigate networks while minimizing hazardous-node visits then total hops.
Trees & Graphsbfsdijkstrashortest-path - StringsMediumAuto-gradedMaximum Unique Character Window Length
Tests sliding window technique with hash map indexing to efficiently find the longest substring with all distinct characters.
Stringssliding-windowhash-maptwo-pointers - Data Structure DesignHardAuto-gradedLive String Index Store with Closest-Match Queries
Tests ability to design a data structure that supports streaming character appends, point updates, and O(log N) nearest-occurrence queries over a mutable string.
Data Structure Designordered-settreapbinary-search-treedesign - Data Structure DesignHardAuto-gradedSimulate a Time-Aware Key-Value Store with Transactions
Tests implementation of an in-memory store combining TTL expiration, a logical clock, and atomic single-transaction semantics with rollback.
Data Structure Designhash-maptransactionssimulation - Arrays & HashingMediumAuto-gradedReorganize Array Elements by Hash-Based Bucket Assignment
Tests understanding of parallel counting, prefix sums, and scatter operations to group array elements into contiguous buckets.
Arrays & Hashingcountingprefix-sumpartitioning - Arrays & HashingMediumAuto-gradedDifference in Proportions Confidence Interval
Tests understanding of statistical inference by computing a confidence interval for the difference between two independent proportions.
Arrays & Hashingstatisticshypothesis-testingconfidence-intervalsexperimental-design - Trees & GraphsMediumAuto-gradedAssemble a Binary Tree from Two Traversals, Output by Level
Tests whether a candidate can reconstruct a unique binary tree from its preorder and inorder sequences and serialize the result breadth-first with null markers.
Trees & Graphsbinary-treetraversalBFSiterative - Math & Bit ManipulationMediumAuto-gradedCount Days Between Two Dates
Tests efficient calendar arithmetic by computing date intervals without iteration, requiring leap year logic and modular reasoning.
Math & Bit Manipulationmathcalendarmodular-arithmetic - StringsMediumAuto-gradedMinimum Edits to Make a String k-Palindromic
Tests the ability to combine classic edit-distance dynamic programming with palindrome structure to find the minimum single-character substitutions needed to make a string palindromic after removing exactly k characters.
Stringsstringsdynamic-programmingedit-operations - Trees & GraphsMediumAuto-gradedBuild Installation Order from Package Dependencies
Tests graph traversal with cycle detection to compute a valid installation sequence for packages with dependencies.
Trees & Graphsgraph-traversaltopological-sortcycle-detectiondfs - Trees & GraphsHardAuto-gradedVirus Spread Simulation with Recovery and Infection Thresholds
Models discrete-time epidemic propagation on a grid where cells require multiple infected neighbors to catch the virus and recover after a fixed duration.
Trees & Graphssimulationbfsgraph-traversal - Greedy & IntervalsMediumAuto-gradedVenue Hours Checker with Overnight and Multi-Window Schedules
Tests whether a venue is open at a given weekday and time, handling multiple daily windows, overnight shifts, and week-boundary wraparound.
Greedy & Intervalsintervalssimulationboundary-conditions - Data Structure DesignEasyAuto-gradedSliding Window Hit Counter
Tests ability to design time-windowed event counters with efficient memory management and query performance using sliding-window techniques.
Data Structure Designqueuesliding-windowdata-structure-design - Heaps, Sorting & SearchMediumAuto-gradedBinary Search Over a Row-Chained Sorted Grid
Tests whether a candidate can exploit strict row-chaining in a sorted matrix to locate a target value in O(log(m·n)) time using a single binary search.
Heaps, Sorting & Searchbinary-searcharraysmatrix - Trees & GraphsMediumAuto-gradedCount Connected Land Regions in a Binary Grid
Tests iterative 2D graph traversal to count connected components of land cells without modifying the input or risking recursion stack overflow.
Trees & Graphsgraph traversalBFS/DFSconnected componentsgrid - Dynamic ProgrammingMediumAuto-gradedSplit-or-Enumerate Symbol Sequence Decoder
Tests string parsing, memoized backtracking, and combinatorial enumeration by decoding a symbol-encoded message with either explicit or missing letter boundaries.
Dynamic Programmingstringsdynamic-programmingbacktracking - Arrays & HashingMediumAuto-gradedRepair a Looping Script by Swapping One Instruction
Tests simulation, cycle detection, and brute-force search by finding the single jmp/nop swap that lets a small virtual machine terminate cleanly.
Arrays & Hashingsimulationcycle-detectionbrute-force - Data Structure DesignHardAuto-gradedMulti-Consumer Iterator with Shared Buffering
Tests iterator protocols, lazy evaluation, and memory-efficient buffering for multiple independent consumers reading from a single source stream.
Data Structure Designiteratorsgeneratorsmemory-management - Data Structure DesignMediumAuto-gradedBatch Counter Updates with Global Shift and Min Extraction
Tests lazy global offset propagation and min-heap with lazy deletion to efficiently manage counters under bulk increments and minimum extraction.
Data Structure Designheaplazy-propagationdesign - Arrays & HashingEasyAuto-gradedClassify Temperatures into Three Weather Bands
Tests careful boundary handling by bucketing integer temperatures into cold, mild, and hot ranges and returning the three counts in order.
Arrays & Hashingarrayscountingboundary conditions - Arrays & HashingMediumAuto-gradedRectangular Stamp Overlap Counter
Tests whether a candidate can use a 2D difference array to efficiently count how many rectangular regions overlap each cell of a grid.
Arrays & Hashing2d-arrayprefix-sumdifference-array - Math & Bit ManipulationMediumAuto-gradedCalculate Day Count Between Two Dates
Tests understanding of calendar arithmetic including leap year logic, month lengths, and converting dates to a numeric representation.
Math & Bit Manipulationmathimplementationdate-arithmetic - Arrays & HashingEasyAuto-gradedFind Days Available to All Participants
Tests set intersection logic and handling of multiple collections to find common elements across all inputs.
Arrays & Hashingsetsintersectionarrays