practice a little every day — you've got this ♡
Arrays & Hashing Interview 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 391–420 of 435 results
- 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 - Arrays & HashingEasyAuto-gradedCombine Two Ordered Sequences
Tests your ability to merge two pre-sorted arrays into a single sorted result using the classic two-pointer technique.
Arrays & Hashingtwo-pointerssortingmerge - Arrays & HashingEasyAuto-gradedTrack Target Occurrence Patterns Across Array Regions
Identifies whether a target value occurs at even/odd indices and in the first/second half of an even-length array in one pass.
Arrays & Hashingarray-traversalboolean-flagsearly-termination - Arrays & HashingEasyAuto-gradedApply Range Paint Operations and Count Final Colors
Tests ability to use difference arrays to efficiently apply multiple range-update operations and decode the final state.
Arrays & Hashingarraysdifference arrayprefix sumshashing - Arrays & HashingMediumAuto-gradedPopulation Size from Two-Sample Overlap
Apply the capture-recapture estimator to infer total population size from overlapping detection counts.
Arrays & Hashingstatisticsestimationprobability - Arrays & HashingMediumAuto-gradedEvent Log Analysis: Distinct Users and Session Duration
Tests grouping, deduplication, and timestamp arithmetic over semi-structured event records.
Arrays & Hashinggroupingaggregationtimestampsdata-wrangling - Arrays & HashingMediumAuto-gradedRide Service Demand Under Weather Conditions
Apply the Law of Total Probability and Bayes' Theorem to compute ride request likelihoods and conditional weather probabilities.
Arrays & Hashingprobabilitybayes-theoremconditional-probability - Arrays & HashingMediumAuto-gradedRetrieve Minimum and Mode from Array
Tests efficient computation of two simple aggregate statistics using optimal data structures and complexity analysis.
Arrays & Hashinghash-mapscountingcomplexity-analysis - Arrays & HashingMediumAuto-gradedValidate Partially Filled Sudoku Grid
Tests ability to check constraint satisfaction across multiple overlapping groups using efficient duplicate detection.
Arrays & Hashinghash-setconstraint-checkingmatrix