practice a little every day — you've got this ♡
Arrays & Hashing Interview Problems
Practice 5980 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.
- 5980
- Problems
- 2215
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 271–300 of 477 results
- Arrays & HashingMediumAuto-gradedAlign Time Series with Linear Interpolation
Tests piecewise-linear interpolation, binary search, and boundary handling for sampling two time series at common timestamps.
Arrays & Hashinginterpolationbinary-searchtime-series - Arrays & HashingMediumAuto-gradedProfit, Collinearity, and Identity Merging in Three Parts
Tests one-pass array scanning, integer-arithmetic collinear point detection, and union-find graph component grouping in a single combined function.
Arrays & Hashingarraysmathunion-find - Arrays & HashingMediumAuto-gradedGrid Walker with Blocked Cells
Tests simulation with hash-based obstacle lookup, movement logic, and tracking a running maximum over coordinate positions.
Arrays & Hashingsimulationhash-setgrid - Arrays & HashingMediumAuto-gradedSingle Buy-Sell Transaction for Maximum Gain
Tests optimal single-pass tracking of minimum buy price to maximize profit from one stock transaction.
Arrays & Hashingarraysgreedyoptimizationsingle-pass - Arrays & HashingMediumAuto-gradedBuild Sorted Email Event Timeline for Subscriptions
Tests date arithmetic, multi-level sort stability, and designing a rule system that cleanly handles event ordering and extensibility.
Arrays & Hashingsortingdatessimulation - Arrays & HashingMediumModel answerLayered Invoice Processor with Discounts, Tax, and FX
Build a multi-part order cost engine that handles input validation, per-item discounts, order-level tax, multi-currency conversion, and banker's rounding.
Arrays & Hashingdata-processingdecimal-arithmeticinput-validationsorting - Arrays & HashingMediumAuto-gradedCount Members With Continuous Subscription at Final Timestamp
Tests per-entity state simulation where a subscription can only be renewed while still active, and any lapsed subscription is permanently void.
Arrays & Hashingsimulationhash-mapstate-machine - Arrays & HashingMediumAuto-gradedPosterior Probability of Facility Given Red Samples
Tests Bayesian reasoning: computing the posterior probability of a hypothesis using likelihoods and equal priors.
Arrays & Hashingprobabilitybayes-theoremmathematical-reasoning - Arrays & HashingMediumAuto-gradedAll Orderings and Subsets of Distinct Integers
Tests recursive backtracking by building every permutation and every k-length subset of a list of distinct integers in a single function.
Arrays & Hashingbacktrackingrecursioncombinatorics - Arrays & HashingHardAuto-gradedCell Absorption Simulation: Dominant Cell After Feeding Rounds
Simulate a row of cells that absorb weaker neighbors across repeated left-to-right rounds and identify the largest survivor at equilibrium.
Arrays & Hashingsimulationarrayslist-mutation - Arrays & HashingMediumModel answerWriting Test Cases for Array and String Problems
Design a systematic testing strategy for array and string coding problems, covering edge cases, validation, and stress testing.
Arrays & Hashingtestingedge-casesdebugging - Arrays & HashingMediumAuto-gradedMerge Two Sorted Lists Into a Padded Buffer
Merge a sorted list into the sorted prefix of a larger list that ends with unused slots, writing in place with constant extra memory.
Arrays & Hashingtwo-pointersin-placesorted-arraysmerge - Arrays & HashingMediumAuto-gradedCount Close Triplets Within a Value Range
Tests sorting, sliding window, and combinatorial counting to find how many index-distinct triplets fit within a given value spread.
Arrays & Hashingsliding-windowsortingcombinatorics - Arrays & HashingMediumAuto-gradedGrid Walk With Clockwise Redirects at Walls and Obstacles
Tests grid simulation by traversing a matrix in a right-biased clockwise walk that turns at boundaries, visited cells, and blocked positions until no move is possible.
Arrays & Hashingmatrixsimulationgrid - Arrays & HashingMediumAuto-gradedStable Grouping and Column Gravity
Tests stable partitioning of categorized strings and simulating gravity on independent grid columns
Arrays & Hashingarrayssortingsimulationtwo-pointers - Arrays & HashingHardAuto-gradedEstimating the Probability of a Dice Sum Exceeding a Target
Apply the central limit theorem and continuity correction to approximate the tail probability of a sum of independent discrete random variables.
Arrays & Hashingprobabilitycentral-limit-theoremnormal-approximationcontinuity-correction - Arrays & HashingMediumAuto-gradedEvaluate Request Status from Rule Matches
Tests rule-based decision logic with subset matching and outcome priority resolution when multiple rules apply simultaneously.
Arrays & Hashingset-operationslogicprecedence - Arrays & HashingHardModel answerFewest Swaps to Bring an Array with Duplicates into Sorted Order
Given an integer array that may contain duplicates, find the minimum number of arbitrary index swaps needed to sort it in non-decreasing order.
Arrays & Hashingsortingpermutationscycle-detectiongreedy - Arrays & HashingMediumModel answerPeak Average Score: Overflow, Large Files, and Java Concurrency
Aggregate student scores to find the highest per-student average, then extend the solution for huge files, negative values, integer overflow, and multithreaded processing.
Arrays & Hashingjavaconcurrencyaggregationinteger-overflow - Arrays & HashingMediumModel answerSimulating Motion Under Time-Varying Visibility Constraints
Determine how many entities moving rightward on a line reach a target position when their movement is blocked by a direction-switching observer.
Arrays & Hashingsimulationbinary-searchprefix-sum - Arrays & HashingMediumAuto-gradedInstrument-Based Estimator for a Randomized Encouragement Trial
Tests whether a candidate can implement ITT, first-stage, and IV/Wald (LATE) estimators from a randomized encouragement design, including a balance check on pre-treatment activity.
Arrays & Hashingcausal-inferencea-b-testinginstrumental-variables - Arrays & HashingMediumAuto-gradedDeduplicate Coordinate List with Index Mapping
Tests the ability to extract distinct elements while preserving first-occurrence order and building an index array for reconstruction.
Arrays & Hashinghashingdeduplicationindexing - Arrays & HashingMediumAuto-gradedAlternating Chain Assembly from Both Ends
Tests two-pointer simulation with alternating turns, conditional greedy selection rules, tie-breaking logic, and strict-increase constraints.
Arrays & Hashingsimulationtwo-pointersarrays - Arrays & HashingHardAuto-gradedDifference-in-Differences Estimator with Baseline Gap Check
Tests understanding of causal inference mechanics by computing a DID treatment effect and flagging baseline imbalance from panel observations.
Arrays & Hashingcausal-inferencedata-analysisdifference-in-differences - Arrays & HashingHardAuto-gradedData-Driven Fare Policy Rule Engine
Evaluate stored fare and per-driver policy rules over a trip table with generic field/operator conditions and exact integer-cent sums.
Arrays & Hashinghash-mapsortingrule-enginesimulation - Arrays & HashingMediumAuto-gradedTransform a Sorted Array with a Quadratic
Evaluate a quadratic expression at every element of a sorted array and emit the results in ascending order in linear time.
Arrays & Hashingtwo-pointerssortingmathmonotonic - Arrays & HashingMediumModel answerLongest Streak of Distinct Viewing History
Find the longest contiguous subsequence in a viewing history array where no show appears more than once (case-insensitive).
Arrays & Hashingsliding-windowhash-maptwo-pointers - Arrays & HashingHardAuto-gradedAll MEX Values After One Optional Increment
Find every possible MEX after incrementing at most one array element by 1, respecting an upper-bound constraint.
Arrays & Hashingarraysgreedymathcase-analysis - Arrays & HashingEasyAuto-gradedCount Strictly Rising Signal Windows
Count how many contiguous subarrays of length exactly k have strictly increasing values in a signal array.
Arrays & Hashingarrayssliding-windowcounting - Arrays & HashingMediumAuto-gradedLength of the Longest Run of Consecutive Integers
Tests whether a candidate can find the longest chain of consecutive integers in an unsorted array in linear time using a hash set.
Arrays & Hashinghash-setarrayssequences