practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6000 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.
- 6000
- Problems
- 2221
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1711–1740 of 2221 results
- Arrays & HashingEasyAuto-gradedTight Probability Bounds for the Union of Two Events
Tests whether a candidate can derive the Fréchet bounds on P(A ∪ B) given only the marginal probabilities of two events with unspecified dependence.
Arrays & Hashingprobabilityboundsinclusion-exclusion - Arrays & HashingEasyAuto-gradedMean Distinct Item Count Per Group
Tests ability to deduplicate items within groups, handle null values, and compute aggregated metrics with proper rounding.
Arrays & Hashinghash-mapsetaggregationdata-processing - Greedy & IntervalsMediumAuto-gradedCollect Coins with Fixed-Jump Pieces
Tests modular arithmetic insight and greedy reasoning to determine which resources are reachable under constrained movement rules.
Greedy & Intervalsgreedymodular-arithmeticarrays - Stacks & QueuesHardAuto-gradedPeak Tower Configuration with Height Limits
Construct a sequence that rises then falls while respecting per-element caps, maximizing the sum using greedy peak selection and monotonic stacks.
Stacks & Queuesmonotonic-stackgreedyprefix-sum - Trees & GraphsMediumAuto-gradedDetect Cycles in a Package Dependency Graph
Tests ability to detect cycles in a directed graph using DFS-based cycle detection, modelling package dependencies where a cycle makes installation impossible.
Trees & Graphsgraphscycle detectiondepth-first searchtopological order - Dynamic ProgrammingMediumAuto-gradedCount Tile-Filling Combinations for a Target Length
Tests unbounded-knapsack DP by counting unordered multisets of tile widths, drawn from a given list, that sum exactly to a target corridor length.
Dynamic Programmingdynamic-programmingcombinatoricsunbounded-knapsack - Arrays & HashingMediumAuto-gradedSeven-Segment Display 180° Rotation Symmetry
Determine if a sequence of seven-segment digits appears identical when the entire display is flipped upside down.
Arrays & Hashingarrayssimulationmapping - Heaps, Sorting & SearchMediumAuto-gradedKth Element in Union of Two Sorted Lists
Tests ability to find the kth smallest element from two sorted arrays using binary search on partition counts rather than merging.
Heaps, Sorting & Searchbinary-searcharraystwo-pointers - SQL & DataMediumAuto-gradedMonthly Revenue Summary by Product Category
Tests group-by aggregation over a list of transaction records to compute per-category monthly revenue, count, and average order value.
SQL & Datagroup-by aggregationdata cleaningdictionaries - Math & Bit ManipulationMediumAuto-gradedObserver Simulation and Manual Integer Conversion
Tests event-driven simulation optimization and precise numeric string formatting including signed 32-bit boundary handling.
Math & Bit Manipulationsimulationmathstring-manipulation - SQL & DataMediumAuto-gradedDaily Session Starters: Count Users Who Opened the App First
Tests window-function thinking, tie-breaking logic, and grouped aggregation by finding users whose very first recorded action each day was opening the app.
SQL & Datasimulationhash-mapsorting - Arrays & HashingMediumAuto-gradedGroup and Rank Users by Average Value
Tests efficient grouping and aggregation over dictionaries, plus multi-key sorting to produce ordered output.
Arrays & Hashingaggregationdictionariessorting - SQL & DataMediumAuto-gradedCarrier Defect Metrics and High-Risk Shipping Routes
Aggregating shipment quality metrics by carrier and time period, computing period-over-period changes, and ranking routes by defect frequency.
SQL & Dataaggregationjoinswindow-functionsdata-analysis - Arrays & HashingEasyAuto-gradedFilter and Sort Items by Embedding Similarity Score
Tests vector scoring with dot products, stable sorting with tie-breaking, and set-based filtering of excluded indices.
Arrays & Hashingarrayssortingfiltering - Arrays & HashingMediumAuto-gradedSuffix Maximum Frequency Count
Computes how many times the largest element appears in each suffix of an array using a single backward scan.
Arrays & Hashingarrayssuffix-queriessingle-pass - Trees & GraphsHardAuto-gradedReduce Worst-Case Coverage Gap with One New Relay Node
Tests binary search on answer combined with multi-source BFS and 2D prefix sums to optimally place one relay node and minimize the maximum Chebyshev coverage distance.
Trees & Graphsbinary-searchbfsmatrixprefix-sums - Linked ListsMediumAuto-gradedInterleave Two Linked Lists by Position Parity
Tests pointer manipulation and node reordering by splitting a singly linked list (given as an array) into odd- and even-indexed sublists and merging them in a specific interleaved pattern.
Linked Listslinked listspointer manipulationreorderingarray simulation - Data Structure DesignMediumAuto-gradedSimulate a Nested Tic-Tac-Toe Game with Board-Routing Rules
Tests state management for a two-layer game board with recursive win detection and dynamic move constraints based on previous plays.
Data Structure Designsimulationgame-theorystate-machine - Data Structure DesignMediumAuto-gradedDuplicate Linked List and Simulate LRU Cache Operations
Tests linked list deep copying with arbitrary pointers and implementing an LRU cache with O(1) operations using hash maps and doubly-linked lists.
Data Structure Designlinked-listshash-mapdesignpointers - Arrays & HashingEasyAuto-gradedRank Nearest Neighbors by Mean Squared Error
Tests k-nearest neighbors search with distance computation, NULL handling, and top-k selection with tie-breaking.
Arrays & Hashingsimilaritydistance-metricsrankingdata-processing - SQL & DataMediumAuto-gradedCalculate Engaged User Percentage by Region
Classify users as engaged based on activity frequency and device diversity, then compute the engaged-user rate per region.
SQL & Datadata-manipulationaggregationfiltering - Data Structure DesignEasyAuto-gradedSimulate a Bounded LRU Cache with Get/Put Operations
Tests the ability to simulate a fixed-capacity LRU cache by processing a sequence of get/put operations and collecting all get results in order.
Data Structure Designdata structurescachesimulation - Trees & GraphsMediumAuto-gradedAxis-Aligned Bounding Boxes of Grid Regions
Tests BFS/DFS connected-components traversal on a 2D grid to locate distinct filled regions and compute the tightest enclosing rectangle for each.
Trees & Graphsbfsdfsconnected-componentsgrid - Trees & GraphsMediumAuto-gradedShortest Path Through a Grid With Keys and One-Way Portals
Tests BFS/Dijkstra on an augmented state space where position must be combined with a key-collection bitmask, and directional arrow tiles enforce constrained traversal.
Trees & Graphsbfsdijkstrabitmaskgrid - Heaps, Sorting & SearchHardAuto-gradedSelect Best Available Venues by Ranking Criteria
Tests filtering, multi-level sorting with custom tie-breaking rules, and efficient top-K selection from structured data.
Heaps, Sorting & Searchsortingfilteringheappriority-queue - Data Structure DesignMediumAuto-gradedKey-Value Store Operation Simulator
Tests ability to use hash maps for constant-time operations and handle state transitions in a key-value store simulation.
Data Structure Designhash-mapsimulationdata-structures - Heaps, Sorting & SearchEasyAuto-gradedCombine Multiple Sorted Lists into a Single Sorted Sequence
Tests divide-and-conquer merging and two-pointer techniques to efficiently combine many pre-sorted lists.
Heaps, Sorting & Searchdivide-and-conquertwo-pointersmerging - SQL & DataMediumAuto-gradedMulti-Year Sales Analysis by Customer Demographics
Tests data joining, deduplication, cohort segmentation, conditional aggregation, and percentage calculations across multiple tables.
SQL & Datadata-manipulationaggregationcohort-analysis - Greedy & IntervalsMediumAuto-gradedSingle Buy-Sell Stock Gain
Tests finding the maximum profit from one purchase and one sale in a price sequence using a single-pass greedy approach.
Greedy & Intervalsgreedyarrayssliding-window - Data Structure DesignMediumAuto-gradedHistorical Key-Value Store with Time-Based Retrieval
Tests your ability to build a versioned data store supporting efficient historical lookups through binary search on sorted timestamps.
Data Structure Designbinary-searchhash-mapdata-structures