practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5971 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.
- 5971
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 2131–2160 of 2211 results
- Arrays & HashingMediumAuto-gradedPartition Array Into Alternating Parity Groups
Tests in-place partitioning by rearranging an integer array so all even-indexed positions hold even numbers and all odd-indexed positions hold odd numbers, without allocating a new array.
Arrays & Hashingarraystwo pointersin-place partitioning - StringsMediumAuto-gradedPeak Occurrence Count of a Bounded Substring
Tests whether a candidate can reduce a multi-length sliding-window problem to a single window size and efficiently track distinct-character counts.
Stringssliding-windowhash-mapstrings - Stacks & QueuesEasyAuto-gradedPrint Queue Page Order Simulator
Tests queue simulation by modeling a shared printer that interleaves multi-page jobs across rounds, returning the final page-output order.
Stacks & Queuesqueuesimulationarrays - SQL & DataMediumAuto-gradedReconcile Orders with Product Catalog via Inner Join
Tests the ability to join two lists of dicts (orders + products) on a key, aggregate per customer, and return a cleaned, sorted summary.
SQL & Datadata manipulationjoinsaggregation - SQL & DataMediumAuto-gradedReconcile Sales Orders with Product Catalog
Tests joining two lists of dicts (orders + products) on a key, then aggregating revenue and applying data-cleaning rules.
SQL & Datadata manipulationjoinsaggregation - Stacks & QueuesHardAuto-gradedReconstruct Function Entry/Exit Events from Call Stack Snapshots
Tests ability to compute positional diffs between consecutive call stack snapshots and emit correctly ordered START/END events using a stack-based mental model.
Stacks & Queuesstacksimulationstring manipulation - Trees & GraphsMediumAuto-gradedSchedule Dependent Tasks with Priority and Tag Exclusion
Tests Kahn's algorithm with deterministic tie-breaking, urgency-based heap ordering, cycle detection with path reporting, and transparent skipping of tag-excluded tasks.
Trees & Graphstopological-sortheapgraphs - Heaps, Sorting & SearchMediumAuto-gradedSchedule Tasks by Deadline and Priority
Tests the ability to sort a list of tasks using a multi-key custom comparator involving deadlines, priorities, and tie-breaking rules.
Heaps, Sorting & Searchsortingcustom sort keysheaps - StringsEasyAuto-gradedShortest Palindromic Superstring by Suffix–Prefix Overlap
Tests understanding of palindromic structure by finding the minimum characters to append to a string to make the whole string a palindrome.
Stringsstringspalindrometwo pointers - StringsMediumAuto-gradedShortest Substring Containing All Required Characters
Tests the sliding window pattern with frequency counting to find the shortest substring of one string that covers every character (with multiplicity) of another.
Stringssliding-windowhash-maptwo-pointers - Stacks & QueuesHardAuto-gradedSimulate a Multi-Lane Toll Plaza Queue
Tests queue simulation skills by modeling vehicles routing through toll lanes with dynamic overflow and lane-closing logic.
Stacks & Queuesqueuesimulationgreedy - Data Structure DesignMediumAuto-gradedSliding-Window Rate Limiter Over Event Timestamps
Tests the ability to implement a sliding-window rate limiter that, given a log of request timestamps, determines which requests are allowed under a fixed-window capacity.
Data Structure Designdata structuresrate limitersliding window - Data Structure DesignHardAuto-gradedStateful Activity Window Aggregation Over an Event Stream
Tests whether a candidate can maintain per-user rolling time windows over a chronologically ordered stream and emit aggregated records incrementally without buffering the whole input.
Data Structure Designhash-mapsimulationstreamingaggregation - Trees & GraphsMediumAuto-gradedSum of Decimal Paths in a Binary Tree
Tests depth-first (or breadth-first) traversal of a binary tree while tracking the accumulated digit value along each root-to-leaf path.
Trees & Graphsbinary-treebfsdfs - Math & Bit ManipulationMediumAuto-gradedSum of Digits Across All Bases from 2 to K
Tests ability to repeatedly convert an integer into multiple bases and accumulate digit sums, combining base-conversion mechanics with modular arithmetic.
Math & Bit Manipulationmathbit manipulationbase conversion - Stacks & QueuesHardAuto-gradedValidate Nested Tag Expressions with Typed Bracket Rules
Tests bracket matching using a stack to enforce context-sensitive nesting rules across four distinct bracket types with extra validity constraints.
Stacks & Queuesstacksbracket matchingparsingsimulation - Trees & GraphsMediumAuto-gradedRecover Build Order From Incremental Patch Dependencies
Tests whether candidates can apply topological sort (Kahn's algorithm or DFS) to determine a valid linear build order from a dependency graph of software patches.
Trees & Graphsgraphstopological sortBFSKahn's algorithm - Dynamic ProgrammingMediumAuto-gradedCollect Gems in a Grid with Fatigue Penalty
Tests grid-path DP with a carried state (fatigue level) that penalizes consecutive moves in the same direction, requiring careful state-space design and memoization.
Dynamic Programmingdynamic programminggridmemoizationstate machine - Heaps, Sorting & SearchEasyAuto-gradedTop-K Most Frequent Words With Tie-Breaking
Tests ability to retrieve the k most frequent words from a list, using lexicographic order as a tie-breaker, via a heap or sort-based approach.
Heaps, Sorting & Searchheapsortinghash map - Stacks & QueuesHardAuto-gradedLargest Rectangle Under a Skyline with Forbidden Zones
Tests the ability to apply a monotonic stack to find the largest rectangular area under a histogram while skipping columns that are marked as forbidden.
Stacks & Queuesmonotonic stackarraysgeometry - Stacks & QueuesMediumAuto-gradedValidate Nested Markup Tag Sequence
Tests bracket matching logic by verifying that a simplified markup string with typed opening/closing tags is correctly nested and properly closed.
Stacks & Queuesstackparsingsimulation - Arrays & HashingEasyAuto-gradedLongest Subarray with At Most K Distinct Flavors
Tests the classic sliding window pattern for finding the longest contiguous subarray containing at most K distinct values.
Arrays & Hashingarrayssliding windowhash map - Linked ListsHardAuto-gradedDetect Merge Point of Two Rho-Shaped Index Chains
Tests mastery of Floyd's cycle-detection algorithm and two-pointer merge-point finding applied to implicit linked lists encoded as index arrays.
Linked Listslinked listscycle detectiontwo pointers - SQL & DataEasyAuto-gradedSummarize Monthly Sales by Region
Tests ability to perform group-by aggregation over a list of transaction records, computing per-region monthly totals and counts.
SQL & Datadata manipulationgroup-byaggregation - Stacks & QueuesMediumAuto-gradedValidate Nested Scope Tags with Typed Bracket Pairs
Tests bracket matching by parsing a string of typed scope-open/close tokens and verifying correct nesting, ordering, and balance according to a precedence table.
Stacks & Queuesstacksbracket matchingparsingsimulation - SQL & DataMediumAuto-gradedSummarise Monthly Revenue by Region from Transaction Records
Tests group-by aggregation over a list-of-dict dataset, requiring candidates to compute per-region monthly totals, fill gaps, and apply a tie-break for ranking.
SQL & Datadata manipulationaggregationgroup-bydictionaries - Dynamic ProgrammingMediumAuto-gradedMaximize Museum Tour Value With Energy Budget
Tests the 0/1 knapsack variant where you allocate a fixed energy budget across museum exhibits with costs and values, but some exhibits are only accessible after visiting a prerequisite.
Dynamic Programmingdynamic programmingknapsackprerequisites - Math & Bit ManipulationMediumAuto-gradedTime 45 Minutes Using Two Non-Uniform Burning Cords
Tests logical reasoning about burn-time budgets and how lighting both ends of a cord precisely halves its remaining duration regardless of density.
Math & Bit Manipulationlogicreasoningmath - Trees & GraphsHardAuto-gradedMinimum Batches to Complete All Courses with Prerequisites
Tests topological ordering (Kahn's algorithm / BFS layering) to schedule dependent courses into the fewest sequential batches where each batch runs in parallel.
Trees & Graphsgraphstopological-sortBFS - SQL & DataMediumAuto-gradedRunning Department Budget Balance by Month
Tests the ability to compute a month-over-month running total (cumulative sum) of expenses per department, mimicking a SQL window function with PARTITION BY and ORDER BY.
SQL & Datawindow functionsrunning totalsdata aggregationpandas-style logic