practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6010 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.
- 6010
- Problems
- 2227
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 1531–1560 of 2227 results
- Arrays & HashingMediumAuto-gradedCompute Spending Totals by Worker, Journey, and Type
Tests efficient multi-key aggregation using hash maps to group and sum records in a single pass over large datasets.
Arrays & Hashinghash-mapsaggregationgrouping - Trees & GraphsHardAuto-gradedSafe Edge Insertion Check for a Dependency Graph
Tests graph reachability and cycle detection: determine whether a new directed edge can be added to an acyclic dependency graph without introducing a cycle.
Trees & Graphsgraphsdepth-first-searchcycle-detectionreachability - Heaps, Sorting & SearchMediumAuto-gradedTask Scheduler with Parallel Workers
Simulate dispatching sequential tasks to parallel workers and determine when all work completes.
Heaps, Sorting & Searchheapsimulationgreedy - Arrays & HashingMediumAuto-gradedValid Subsets Bounded by Their Spread
Count non-empty index-distinct subsets where the smallest plus largest value stays within a limit, using sorting, two pointers, and modular arithmetic.
Arrays & Hashingtwo-pointerssortingcombinatorics - Data Structure DesignHardAuto-gradedBuild a Record Filter with Nested Query Conditions
Evaluate structured filter expressions with comparison, membership, and logical operators over in-memory records
Data Structure Designrecursiondata-structuresquery-evaluation - Dynamic ProgrammingHardAuto-gradedMaximize Hourly Output Revenue for a Three-Stage Assembly Line
Tests budgeted 0/1 selection with a bottleneck objective, requiring Pareto-frontier pruning over a four-dimensional knapsack state space.
Dynamic Programmingknapsackpareto-frontierbottleneckcombinatorial-optimization - Data Structure DesignEasyAuto-gradedFind Minimum Index Gap Between Word Pairs
Tests the ability to preprocess data for efficient repeated lookups using hash maps and two-pointer merging of sorted lists.
Data Structure Designhash-maptwo-pointerspreprocessing - StringsEasyAuto-gradedTotal Palindrome Substrings in a String
Tests your ability to count every palindromic substring by expanding around centers or applying Manacher's linear-time algorithm.
Stringsstringsdynamic-programmingtwo-pointers - StringsEasyAuto-gradedFirst Longest Window of Distinct Characters
Tests whether a candidate can apply the sliding window technique with a hash map to find the earliest, longest non-repeating character run in a string.
Stringssliding-windowhash-maptwo-pointers - Heaps, Sorting & SearchMediumAuto-gradedTop-K Labels by Frequency with Alphabetical Tie-Breaking
Tests frequency counting and compound-key sorting to find the k most common strings, resolving ties by alphabetical order for both ranking and inclusion.
Heaps, Sorting & Searchsortinghash-mapheap - Data Structure DesignMediumAuto-gradedDeduplicate Repeated Log Messages with Time Window
Filter a time-ordered stream of log messages to show each distinct message only once per 10-second window
Data Structure Designhash-mapstreamingrate-limiting - SQL & DataMediumAuto-gradedClassify Risky Transactions and Dispute History
Tests multi-window aggregation, business-rule encoding, and precise date/time boundary handling across three related data tables.
SQL & Datadata-manipulationdatetimebusiness-rules - Trees & GraphsMediumAuto-gradedShortest Route Through a Blocked Matrix
Find the minimum number of unit moves from the top-left to the bottom-right cell of a 0/1 matrix, or report that no route exists.
Trees & Graphsbfsgridshortest-pathgraph-traversal - Data Structure DesignMediumAuto-gradedSimulate an In-Memory Key-Value Store
Tests ability to implement a command-driven key-value store with correct upsert, lookup, conditional update, delete, and membership semantics.
Data Structure Designhash-tablesimulationdesign - Linked ListsHardAuto-gradedFind Where Two Linked Lists Merge
Tests pointer manipulation and list traversal to locate the merge point of two singly linked lists in linear time with constant space.
Linked Liststwo-pointerslinked-listspointer-manipulation - Arrays & HashingMediumAuto-gradedNext Ace Probability Given at Least One Ace Already Drawn
Tests conditional probability over sampling without replacement, combining hypergeometric counting with Bayes' theorem to handle a "at least one" conditioning event.
Arrays & Hashingconditional-probabilitycombinatoricshypergeometric - Arrays & HashingMediumAuto-gradedSlot-Aware Feed Deduplication Across Ordered Sections
Tests whether candidates can implement a two-phase, cross-section deduplication policy with per-section slot limits, within-section uniqueness, and optional exempt sections.
Arrays & Hashinghashingsimulationgreedy - Linked ListsMediumAuto-gradedReorder Linked List by Zigzag Level Buckets
Tests pointer-manipulation intuition by reordering a singly-linked list (given as an array) into a zigzag pattern based on partitioning nodes into fixed-size buckets.
Linked Listslinked listsarray manipulationreordering - Math & Bit ManipulationMediumAuto-gradedOptimal Ball Distribution for Maximum Joint Red Probability
Tests ability to formulate and optimize a probability function over discrete allocations with boundary analysis.
Math & Bit Manipulationprobabilityoptimizationmath - SQL & DataMediumAuto-gradedConditional Sum Aggregation with Group Filtering
Compute filtered totals two ways and group-then-threshold results, mirroring SQL conditional aggregation semantics.
SQL & Dataconditional-aggregationgroupingsimulationpython - Heaps, Sorting & SearchEasyAuto-gradedMinimum Consecutive Gap Frequency
Sort an array, find the smallest difference between adjacent elements, and count how many consecutive pairs share that difference.
Heaps, Sorting & Searcharrayssortingcounting - Trees & GraphsHardAuto-gradedMinimum Time to Complete All Build Tasks with Dependencies
Tests ability to apply topological ordering (Kahn's algorithm) to schedule parallel tasks with durations and prerequisite chains, computing the earliest completion time.
Trees & Graphsgraphstopological sortdynamic programmingBFS - Arrays & HashingMediumAuto-gradedThree Probability Puzzles
Tests understanding of optimal stopping, geometric probability, and Poisson processes through three independent probability calculations.
Arrays & Hashingprobabilityoptimal-stoppingpoisson-processgeometric-probability - Dynamic ProgrammingMediumAuto-gradedSmallest Venue Set That Fits a Group
Tests capacity-constrained subset selection with multi-level tie-breaking: fewest venues, then minimum total capacity, then lexicographically smallest ID list.
Dynamic Programmingdynamic-programmingsubset-sumcombinatorics - StringsHardAuto-gradedMinimum Prefix Extension to Form a Palindrome
Tests whether you can use the KMP failure function to find the longest palindromic prefix of a string and prepend the minimum number of characters to make it a palindrome.
Stringsstringskmppalindrome - Data Structure DesignMediumAuto-gradedMaintain Contiguous Delivery Sequence and Detect Gaps
Tests managing out-of-order arrivals with sets to track the longest complete prefix and identify missing elements in a sparse range.
Data Structure Designsetstrackingstate-management - Data Structure DesignMediumAuto-gradedTime-Travel Array with Historical Query Support
Design a data structure that tracks an array's evolution through snapshots and answers queries about past states efficiently.
Data Structure Designbinary-searchversioningdata-structures - StringsMediumAuto-gradedExtract Stock Symbols from a Text Snippet
Tests whole-word, case-insensitive multi-token matching with trie-based scanning and deduplication ordered by a reference list.
Stringsstringshashingtrie - Arrays & HashingHardAuto-gradedPeak Subarray Sum in a Run-Length-Encoded Sequence
Tests whether a candidate can find the maximum sum of a fixed-length window over a run-length-encoded array too large to expand in memory.
Arrays & Hashingsliding-windowprefix-sumsrun-length-encodingbinary-search - StringsMediumAuto-gradedWidest Alphabetic Boundary Gap Across Tokens
Tests string scanning, ASCII letter detection, and single-pass maximum tracking with tie handling across whitespace-delimited tokens.
Stringsstringsscanningcase-normalizationties