practice a little every day — you've got this ♡
Arrays & Hashing Interview Problems
Practice 5969 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.
- 5969
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 421–450 of 475 results
- Arrays & HashingMediumAuto-gradedDetect Tic-Tac-Toe Termination on an n×n Grid
Tests scanning all rows, columns, and diagonals for a complete line of matching non-zero marks, and detecting a full board with no remaining moves.
Arrays & Hashingarraysmatrixgame-simulation - Arrays & HashingHardModel answerRearrange Grid Cells into Alternating-Row Order via Adjacent Swaps
Output a sequence of orthogonal-neighbor swaps that transforms a permuted square grid into alternating-row sorted form.
Arrays & Hashingmatrixgreedysimulationsorting - Arrays & HashingMediumModel answerThree Algorithm Challenges: Enumeration, Backtracking, and Merging
Solve three distinct problems: compute the k-th element in a lexicographically ordered sequence, count valid paths under geometric constraints, and merge overlapping ranges.
Arrays & Hashingcombinatoricsbacktrackingtwo-pointersenumeration - Arrays & HashingHardAuto-gradedCompute P-Values for Statistical Hypothesis Tests
Tests numerical stability in tail probability calculation, distribution function implementation, and handling of hypothesis testing edge cases.
Arrays & Hashingstatisticsnumerical-methodshypothesis-testing - Arrays & HashingMediumAuto-gradedFind Contiguous Prefix Values in Permutation
Tests understanding of positional reasoning and incremental range tracking in permutations to identify when values 1..k occupy consecutive indices.
Arrays & Hashingarrayspermutationssliding-windowgreedy - Arrays & HashingMediumAuto-gradedStraight-Line Word Search Across Eight Directions
Tests whether a target word appears in a letter grid along any single unbroken ray, locking direction after the first letter.
Arrays & Hashinggridstring-matchingenumeration - Arrays & HashingMediumModel answerParallel Image Pipeline Without External Libraries
Build a CPU-based image transformation engine that chains grayscale, brightness, and resize operations across multiple images using pure Python.
Arrays & Hashingimage-processingparallel-processingarray-manipulation - Arrays & HashingMediumAuto-gradedFind Minimum Window Containing All Distinct Characters
Tests ability to use a sliding window combined with hash counting to find the shortest substring that contains every distinct character appearing in the input string.
Arrays & Hashingsliding windowhash mapstringstwo pointers - Arrays & HashingMediumAuto-gradedLongest Subarray with Bounded Variance Sum
Tests the ability to combine prefix sums with hash maps to efficiently find the longest contiguous subarray whose element-wise difference from the mean of two boundary values stays within a given tolerance.
Arrays & Hashingarraysprefix sumshash maps - Arrays & HashingMediumAuto-gradedAdjust P-Values for Multiple Testing Corrections
Tests implementation of Bonferroni and Holm-Bonferroni procedures to control family-wise error rate when conducting multiple hypothesis tests.
Arrays & Hashingstatisticshypothesis-testingmultiple-testingalgorithms - Arrays & HashingMediumAuto-gradedCombine Two Ordered Lists
Tests the ability to implement the classic two-pointer merge algorithm in linear time.
Arrays & Hashingtwo-pointerssortingmerge-algorithm - Arrays & HashingMediumAuto-gradedMerge Sorted Quadratic Outputs in Linear Time
Evaluate a quadratic polynomial on a sorted array and return sorted results without using O(n log n) sorting
Arrays & Hashingtwo-pointerssortingmath - Arrays & HashingMediumAuto-gradedFind Dictionary with Extreme Field Value
Tests your ability to scan a collection of sparse dictionaries and retrieve the one with the minimum or maximum value for a specified field.
Arrays & Hashingdictionariesfilteringiteration - Arrays & HashingMediumAuto-gradedFind Optimal Discount from Multiple Promotion Types
Tests ability to compare multiple discount strategies with different application rules and select the best outcome while handling edge cases like empty inputs and clamping.
Arrays & Hashingsimulationgreedymath - Arrays & HashingMediumAuto-gradedBuild Alternating Color Bands for a Trail Map API
Tests iteration logic for splitting a sequence into overlapping chunks with alternating properties
Arrays & Hashingiterationchunkingapi-design - Arrays & HashingMediumAuto-gradedSequential Robot Navigation on a Bounded Grid
Tests state-machine simulation with coordinate systems, directional rotation logic, boundary checking, and collision detection between sequentially deployed agents.
Arrays & Hashingsimulationstate-machinegrid-navigation - Arrays & HashingMediumAuto-gradedDraw a Grid Chart from Coordinate Pairs
Tests array processing, coordinate mapping, and ASCII visualization by building a bordered grid from unsorted integer coordinates.
Arrays & Hashingarraysstringshash-mapvisualization - Arrays & HashingHardAuto-gradedManual Gradient Computation: Cumulative Products and Softmax Loss
Implement forward and backward passes for cumulative multiplication and stable softmax cross-entropy loss without autograd libraries.
Arrays & Hashinggradientsbackpropagationnumerical-stabilitychain-rule - Arrays & HashingEasyAuto-gradedBinomial Probability of Exactly k Successes
Tests whether a candidate can implement the binomial PMF, including the combination factor, a bias parameter, and out-of-range edge cases.
Arrays & Hashingprobabilitycombinatoricsmath - Arrays & HashingMediumAuto-gradedThree-Part Coding Challenge: Justification, Wildcards, and Pathfinding
Evaluates text formatting with precise spacing rules, wildcard-based string validation, and grid traversal with path reconstruction.
Arrays & Hashingstringsgraphsbfsgreedy - Arrays & HashingMediumAuto-gradedSelect Log Records Meeting Severity Criteria
Tests understanding of ordinal comparison over structured fields versus naive text matching and proper handling of malformed input.
Arrays & Hashingfilteringstring-handlingedge-cases - Arrays & HashingMediumAuto-gradedTrace a Named Value Through a Chain of Symbol Bindings
Tests whether a candidate can resolve a target symbol to its integer value by following an arbitrarily ordered, acyclic chain of name-to-name and name-to-literal bindings.
Arrays & Hashinghash-mapstring-parsingsimulation - Arrays & HashingMediumAuto-gradedDelivery Experiment Design: Sample Size and Error Control
Tests ability to calculate sample sizes for superiority and non-inferiority tests, apply multiple-testing corrections, adjust for clustering, and explain sequential monitoring.
Arrays & Hashingstatisticsexperimental-designhypothesis-testingsample-size - Arrays & HashingHardAuto-gradedPlurality and Instant-Runoff Vote Counting
Tests aggregated vote counting, majority detection, and iterative candidate elimination in ranked-choice systems.
Arrays & Hashingsimulationhash-mapvoting-algorithms - Arrays & HashingMediumAuto-gradedRearrange Array to Next Greater Sequence
Tests in-place array manipulation to transform a sequence into its immediate lexicographic successor, wrapping to the smallest arrangement when needed.
Arrays & Hashingarrayspermutationsin-placetwo-pointers - Arrays & HashingHardAuto-gradedRandom Transfer Between Two Queues: Drain Time and Odds
Tests ability to model a lazy symmetric random walk as a Markov chain, derive a closed-form hitting-time formula, and compute absorption probabilities analytically.
Arrays & Hashingmarkov-chainsrandom-walkprobability - Arrays & HashingMediumAuto-gradedBalance and Settle Shared Costs
Tests the ability to calculate net balances from shared expense records and generate transfers that zero out all debts.
Arrays & Hashinghash-mapgreedysimulation - Arrays & HashingMediumAuto-gradedBalance Point Count in a Weighted Sensor Array
Tests the ability to use prefix sums to efficiently count indices where the weighted sum to the left equals the weighted sum to the right.
Arrays & Hashingarraysprefix sumshash maps - Arrays & HashingMediumAuto-gradedMaximum Straight-Line Distance Through Dangerous Zones
Tests efficient grid reasoning with blocked regions and directional movement constraints using binary search.
Arrays & Hashingbinary-searchgridgeometry - Arrays & HashingMediumAuto-gradedKeep First Occurrence of Each Element
Tests understanding of hash-based deduplication while maintaining insertion order in a single pass through an array.
Arrays & Hashingarrayshash-setdeduplicationorder-preservation