practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6008 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.
- 6008
- Problems
- 2226
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1561–1590 of 2226 results
- Trees & GraphsMediumAuto-gradedGrid Land Regions: Total Count and Unique Footprints
Tests grid flood-fill for connected-component counting and translation-invariant shape canonicalization to identify structurally distinct land regions.
Trees & Graphsgraph traversalflood fillconnected componentshashing - Trees & GraphsMediumAuto-gradedMinimum-Cost Flight Path with Departure Window
Tests constrained graph search: find the cheapest multi-leg flight route where only the first leg must depart within a given date range, connections must respect time ordering, and cycles are forbidden.
Trees & Graphsdijkstragraphsshortest-path - Trees & GraphsMediumAuto-gradedMutual Connections: Find Shared Friends from Follow Data
Tests graph reciprocity reasoning and set intersection: given directed follow edges, identify all users who are mutual friends with both members of every user pair.
Trees & Graphsgraphsset-intersectionsocial-network - Trees & GraphsEasyAuto-gradedShortcut by Adding Free Unit Edges
Reason about degrees of freedom: since you may add arbitrary weight-1 edges, the optimal distance collapses to a constant.
Trees & Graphsgraphsshortest-pathreasoningedge-cases - Trees & GraphsMediumAuto-gradedMinimum Water Cells to Connect Two Land Masses
Tests ability to combine flood-fill island identification with multi-source BFS to find the shortest water path bridging two disconnected land regions in a grid.
Trees & Graphsbfsgridflood-fill - Heaps, Sorting & SearchHardAuto-gradedNearest Profiles by Masked Mean Squared Error
Tests pairwise distance computation with a missing-data-aware MSE metric, tie-breaking, and top-K ranking across user profiles.
Heaps, Sorting & Searchsortingsimilaritymissing-data - Heaps, Sorting & SearchMediumAuto-gradedMinimum Cost to Combine All Elements
Tests greedy algorithm design and min-heap operations to repeatedly merge pairs optimally.
Heaps, Sorting & Searchheapgreedypriority-queue - Trees & GraphsHardAuto-gradedFilter Hierarchical Records by Ancestor Validity
Tests memoized path traversal in a parent-pointer hierarchy with cycle detection and ancestral filtering rules.
Trees & Graphsgraphsmemoizationcycle-detection - Data Structure DesignMediumAuto-gradedWord Dictionary with Insert and Query Operations
Tests implementing a character-level trie to handle insert, exact-match lookup, and prefix-existence queries while distinguishing complete words from prefixes.
Data Structure Designtriedata-structuresstring-matching - Arrays & HashingHardAuto-gradedMinimum Window Containing All K Most-Frequent Characters
Tests ability to combine hash-counting (frequency maps) with a sliding window to find the shortest contiguous subarray satisfying a dynamic frequency-based constraint.
Arrays & Hashingarrayshash mapsliding windowfrequency counting - StringsMediumAuto-gradedGroup Words by Character Frequency
Tests hash map construction with canonical keys to partition strings by anagram equivalence
Stringshash-mapsortingstring-manipulation - Dynamic ProgrammingMediumAuto-gradedPrime-Step Path Score + Bottleneck Throughput Boost
Tests DP over prime-length jumps on an array and binary search on a "maximize the minimum" pipeline scaling problem, combined into one function.
Dynamic Programmingdynamic-programmingbinary-searchnumber-theory - Arrays & HashingMediumAuto-gradedContiguous Subarray with Sum Divisible by K
Tests whether a candidate can apply prefix-sum modular arithmetic to detect a length-≥2 subarray whose sum divides evenly by k in linear time.
Arrays & Hashingprefix-sumhash-mapmodular-arithmetic - Data Structure DesignHardAuto-gradedIn-Memory Cell Grid with Formula Chaining
Tests dependency graph design, lazy cache invalidation, recursive formula evaluation, and cycle detection in a grid of named cells.
Data Structure Designdesigngraphssimulation - Data Structure DesignMediumAuto-gradedSliding-Window Traffic Throttle with Dual Limit Rules
Tests sliding-window counting over timestamped event logs using per-source and per-source-destination deque-based rate limiting.
Data Structure Designsliding-windowdequehash-mapsimulation - Stacks & QueuesMediumAuto-gradedCascade Removal of Equal Neighbor Groups
Tests stack-based simulation of iterative removals that trigger chain reactions when fragments recombine.
Stacks & Queuesstackstringsimulation - Math & Bit ManipulationEasyAuto-gradedCalculate QR Campaign Funnel Metrics
Tests understanding of multi-stage conversion funnels by computing metrics at each step given input rates.
Math & Bit Manipulationmathfunnel-analysisconversions - SQL & DataMediumAuto-gradedReconcile Ledger and Bank Snapshots for a Month
Join two per-month balance datasets on account id, classify each account as match, mismatch, or missing on one side, handling true zero balances correctly.
SQL & Datahashingjoindata-manipulationedge-cases - Arrays & HashingMediumAuto-gradedProbability the Third Card Is an Ace After an Ace Appears
Compute a conditional probability for drawing three cards without replacement by splitting on how many aces the first two draws contain.
Arrays & Hashingprobabilityconditional-probabilitycountingcombinatorics - Arrays & HashingMediumAuto-gradedClockwise Rotation with Frozen Diagonals
Simulate clockwise 90° rotation on a square grid while keeping all main-diagonal and anti-diagonal elements fixed in place.
Arrays & Hashingmatrixsimulationrotation - Data Structure DesignMediumAuto-gradedFour-Card Hand Ranker with Extensible Type System
Tests object-oriented design skills by building a modular, open/closed hand classifier and comparator for a custom four-card game.
Data Structure Designoopdesignsimulation - Linked ListsMediumAuto-gradedDetect Functional-Graph Cycle Start on an Index Array
Tests cycle detection (Floyd's or similar) on an implicit linked list encoded as a next-pointer array, requiring the candidate to find where the cycle begins.
Linked Listslinked listscycle detectiontwo pointersFloyd's algorithm - Trees & GraphsMediumAuto-gradedAnswer Reachability Queries on an Undirected Graph
Build connected components from an edge list with Union-Find, then answer many connectivity queries quickly.
Trees & Graphsunion-findgraphdisjoint-setconnectivity - Trees & GraphsMediumAuto-gradedBest Meeting Point Across All Stations in a City Grid
Tests multi-source BFS on a grid to find the open cell with the smallest total shortest-path distance to every station, respecting walls and blocked cells.
Trees & Graphsbfsgridshortest-path - Data Structure DesignMediumAuto-gradedMini Spreadsheet: Cell Formulas and Cycle Detection
Tests dependency graph modeling, cycle detection on writes, and correct value propagation across a simple formula-based spreadsheet engine.
Data Structure Designgraphsdfsdesign - Heaps, Sorting & SearchMediumAuto-gradedCollapse Repeat Visits and Order the Result
Tests array manipulation, hash-based deduplication, and implementing an O(n log n) sort from scratch without relying on built-in sort utilities.
Heaps, Sorting & Searcharrayssortinghashingheapsort - Dynamic ProgrammingMediumAuto-gradedFind Maximum Strictly Ascending Subsequence Length
Tests dynamic programming optimization using binary search to efficiently compute the longest strictly increasing subsequence in O(n log n) time.
Dynamic Programmingbinary-searchsubsequencesgreedy - Dynamic ProgrammingMediumAuto-gradedWays to Decode a Numeric String into Letters
Tests dynamic programming reasoning on sequential digit-to-letter mappings, including careful handling of zeros and invalid two-digit pairs.
Dynamic Programmingdynamic-programmingstringsrecursion - Trees & GraphsMediumAuto-gradedLongest Path in an Undirected Tree
Tests whether a candidate can find the longest edge-path in a tree using two linear-time traversals and reason about why the approach is correct.
Trees & Graphsbfstreesgraph-traversal - StringsMediumAuto-gradedLongest Window of Unique Characters
Tests whether a candidate can apply a sliding window with a character index map to find the longest contiguous run of non-repeating characters.
Stringssliding-windowhash-maptwo-pointers