practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6003 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.
- 6003
- Problems
- 2223
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1621–1650 of 2223 results
- Data Structure DesignMediumAuto-gradedWorker Pay Rate Ledger with Interval Cost Queries
Tests piecewise-constant function integration, lazy evaluation, and interval clipping inside a simulated in-memory billing system.
Data Structure Designdesignintervalssimulation - Trees & GraphsHardAuto-gradedCompute Division Chains from Given Ratios
Tests graph modeling of multiplicative relationships and pathfinding to derive transitive ratios between variables.
Trees & Graphsgraphbfsunion-find - Trees & GraphsMediumAuto-gradedMatch Documents Against Filter Expressions
Build a recursive evaluator for filter expressions with logical operators and field comparisons, testing tree traversal and nested field lookup.
Trees & Graphsrecursiontreesdictionaries - Data Structure DesignMediumAuto-gradedParcel Locker Manager with History Tracking
Build a locker allocation system that assigns the smallest free locker, validates pickups, and remembers the last package stored in each locker.
Data Structure Designheapsimulationdata-structure-design - Data Structure DesignHardAuto-gradedTimestamped Press-and-Release Event Classifier
Tests per-button state tracking and timing logic over an ordered event stream to classify completed press-release pairs by hold duration.
Data Structure Designhash-mapevent-streamstate-machine - Trees & GraphsMediumAuto-gradedVerify BST Property on a Level-Order Encoded Tree
Test whether a breadth-first list representation of a binary tree satisfies strict BST ordering without allowing duplicate values.
Trees & Graphsbinary-treebstvalidation - Data Structure DesignMediumAuto-gradedSimulate a Frequency-Based Eviction Cache
Tests ability to simulate a sequence of get/put/delete operations on an LFU-like cache that evicts the least-frequently-used key on overflow, with tie-breaking by insertion order.
Data Structure Designdata structuressimulationcache - Greedy & IntervalsMediumAuto-gradedFind the Highest-Scoring Boundary Pair in an Array
Tests whether a candidate can exploit a telescoping sum identity to reduce an interval scoring problem to a fast two-endpoint selection with careful tie-breaking.
Greedy & Intervalsarraysgreedytwo-pointers - Stacks & QueuesMediumAuto-gradedBracket Matching, Interval Union, and Expression Parsing
Tests stack-based bracket validation, interval merging with endpoint semantics, and arithmetic evaluation with unary operators.
Stacks & Queuesstacksintervalsparsingexpression-evaluation - Arrays & HashingMediumAuto-gradedR² Bounds When Two Predictors Are Combined in OLS
Tests whether a candidate can derive the valid range of R² for a joint OLS model given the individual R² values of two single-predictor models.
Arrays & HashingstatisticsregressionOLS - Arrays & HashingHardAuto-gradedCost-Aware Fraud Model Comparison
Compares classification models using business costs, derives optimal decision thresholds, and identifies the most economical model.
Arrays & Hashingclassificationcost-sensitive-learningconfusion-matrixmodel-evaluation - Dynamic ProgrammingMediumAuto-gradedMaximum Score With No Two Adjacent Drops
Tests whether a candidate can model a pick/skip DP with a "no two consecutive skips" constraint using O(1) space and O(n) time.
Dynamic Programmingdynamic-programmingarraysgreedy - Arrays & HashingMediumAuto-gradedPair Indices with Given Sum
Tests hash table usage and algorithm optimization to locate two array positions that sum to a target value.
Arrays & Hashinghash-maptwo-pointersoptimization - StringsMediumAuto-gradedCheck Password Compliance and Report Violations
Tests string validation logic, character classification, case-insensitive pattern matching, and consecutive character counting.
Stringsvalidationstring-processingpattern-matching - Heaps, Sorting & SearchMediumAuto-gradedTop-K Cutoff: Find the K-th Highest Value
Tests order-statistics intuition by asking candidates to extract the k-th largest element from an unsorted array without a full sort.
Heaps, Sorting & Searchheapsortingorder-statistics - Heaps, Sorting & SearchMediumAuto-gradedFind Target Index in Sorted Array
Tests ability to implement iterative binary search with correct loop invariants, boundary handling, and termination conditions.
Heaps, Sorting & Searchbinary-searcharraysiterativealgorithm-implementation - Trees & GraphsHardAuto-gradedMinimum Moves Across an Obstacle Grid
Tests BFS-based shortest-path reasoning on an unweighted 2D grid with blocked cells and 4-directional movement.
Trees & Graphsbfsgraph traversalgridshortest path - Arrays & HashingMediumAuto-gradedFilter Bank Transfers and Summarize by Source Account
Tests ability to validate records against a lookup table, apply multi-condition filtering, and aggregate results into ranked frequency counts.
Arrays & Hashingsimulationhash-mapsorting - Data Structure DesignHardAuto-gradedMulticore Thermal Simulation with Adaptive Cooling Selection
Tests discrete-event simulation skills: delayed load semantics, proportional passive cooling with vibration penalties, fixed-point active cooling selection, and transition-only status reporting.
Data Structure Designsimulationstate-machinefixed-point - Arrays & HashingMediumAuto-gradedText Spam Detector: Naive Bayes Classifier with F1 Score
Tests understanding of probabilistic text classification by implementing a Multinomial Naive Bayes model from scratch and evaluating it with the F1 score.
Arrays & Hashingnaive-bayestext-classificationf1-score - Arrays & HashingEasyAuto-gradedCount Unique Elements in Array
Identify how many values appear exactly one time in an integer array using frequency analysis.
Arrays & Hashinghash-tablecountingfrequency-map - StringsMediumAuto-gradedSliding Tokens: Valid String Transformation
Tests two-pointer traversal, sequence invariants, and directional movement constraints with O(n) time and O(1) space.
Stringstwo-pointersgreedyinvariants - Dynamic ProgrammingHardAuto-gradedCount Parity-Alternating Subsequences
Tests dynamic programming with state tracking to count subsequences where consecutive elements alternate between even and odd values.
Dynamic Programmingdynamic-programmingsubsequencesparitymodular-arithmetic - Data Structure DesignHardAuto-gradedN-Player High-Card Showdown: Simulate and Score
Tests object-style thinking, round-robin dealing, and deterministic simulation of a card game where each round's highest card wins all played cards.
Data Structure Designsimulationqueuesgame-design - Greedy & IntervalsMediumAuto-gradedIdentify Gaps in a Sorted Array Within Bounds
Tests interval reasoning, array traversal, edge case handling with boundaries, and formatting output for missing number ranges.
Greedy & Intervalsarraysintervalsedge-cases - Arrays & HashingEasyAuto-gradedSplice One Sequence Into Another by Index Range
Tests careful list slicing and index boundary handling by replacing a contiguous subrange of one sequence with the full contents of a second sequence.
Arrays & Hashingarraystwo-pointersimplementation - Arrays & HashingMediumAuto-gradedConvolutional Layer Analysis: Shapes, Parameters, and Efficiency
Calculate output dimensions, parameter counts, and multiply-accumulate operations for standard and depthwise separable convolutions.
Arrays & Hashingconvolutional-networksparameter-countingcomputational-complexity - Data Structure DesignHardAuto-gradedTTL-Aware LRU Cache with Lazy Expiration
Tests ability to design an O(1) key-value store combining LRU eviction with per-entry time-to-live expiration using a hash map and doubly linked list.
Data Structure Designlinked-listshash-mapcachelru - Data Structure DesignEasyAuto-gradedReplay an Operation Log to Answer Versioned Key Lookups
Tests the ability to simulate a versioned key-value store by replaying a sequence of set/delete operations and answering point-in-time key lookups.
Data Structure Designdata structuressimulationhash map - Data Structure DesignMediumAuto-gradedSimulate LRU Cache with Composite Keys
Tests understanding of LRU eviction policy, composite key normalization, and cache statistics tracking through command simulation.
Data Structure Designlru-cachehashingordered-dictdata-structures