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–435 of 435 results
- Arrays & HashingMediumAuto-gradedCalculate Upper-Tail Probability for Binomial Distribution
Compute the exact cumulative probability P(X ≥ k) for a binomial random variable, testing understanding of numerical stability in probability calculations.
Arrays & Hashingprobabilitybinomial-distributionnumerical-methods - Arrays & HashingHardAuto-gradedBayesian A/B Test Launch Decision with Cost Tradeoffs
Tests whether a candidate can combine Bayesian posterior updating with expected-value analysis to make a statistically grounded product launch decision.
Arrays & Hashingbayesian-inferencedecision-analysisab-testing - Arrays & HashingMediumAuto-gradedPeak Subarray, Lone Value, and Spiral Grid Traversal
Tests Kadane's algorithm with tie-breaking, frequency-based minimum selection, and counterclockwise skip-step grid simulation in one combined function.
Arrays & Hashingarraysdynamic-programmingsimulation - Arrays & HashingEasyAuto-gradedCorrecting Sampling Bias When Counting Children Per Household
Tests whether a candidate can identify and reverse length-biased sampling to recover true household-level proportions from child-level survey data.
Arrays & Hashingprobabilitysampling-biasweighted-estimation - Arrays & HashingMediumAuto-gradedCoffee Quality Comparison Probability
Calculate the probability that one person's coffee selections outperform another's under different definitions of "better"
Arrays & Hashingprobabilitycombinatoricssymmetry - Arrays & HashingEasyAuto-gradedComplete the Run: Find the Gap in a Five-Card Sequence
Tests ability to handle encoded card ranks, Ace-as-low/high semantics, ambiguous endpoints, and missing-element logic in a fixed consecutive sequence.
Arrays & Hashingarraysstringsenumeration - Arrays & HashingEasyAuto-gradedFind the First Character Appearing Exactly Once
Tests the ability to use hash counting (frequency maps) to efficiently locate the first character in a string that appears exactly once.
Arrays & Hashingarrays & hashinghash countingstrings - Arrays & HashingEasyAuto-gradedFind the Most Frequent Character Difference
Tests whether a candidate can use hash counting to find the pair of distinct characters whose absolute frequency difference is largest in a given string.
Arrays & Hashingarrays & hashinghash countingstrings - Arrays & HashingEasyAuto-gradedLongest Subarray with Sum At Most K
Tests the ability to apply a sliding window to find the longest contiguous subarray whose element sum does not exceed a given limit.
Arrays & Hashingarrayssliding windowprefix sums - Arrays & HashingHardAuto-gradedMinimum Window Containing All Balanced Bracket Types
Tests ability to use hash counting with a sliding window to find the shortest contiguous subarray that contains at least k complete pairs of each bracket type.
Arrays & Hashingarrayshash mapsliding windowtwo pointers - Arrays & HashingMediumAuto-gradedPartition Array by Parity of Frequency
Tests in-place partitioning using a hash map to precompute element frequencies, then a two-pointer scheme to rearrange elements without extra array allocation.
Arrays & Hashingarrayshash mapstwo pointersin-place partitioning - Arrays & HashingMediumAuto-gradedPartition Array Into Alternating Parity Groups
Tests in-place partitioning by rearranging an integer array so all even-indexed positions hold even numbers and all odd-indexed positions hold odd numbers, without allocating a new array.
Arrays & Hashingarraystwo pointersin-place partitioning - Arrays & HashingEasyAuto-gradedLongest Subarray with At Most K Distinct Flavors
Tests the classic sliding window pattern for finding the longest contiguous subarray containing at most K distinct values.
Arrays & Hashingarrayssliding windowhash map - Arrays & HashingEasyAuto-gradedBouquet Sales: Count Days With Enough Flowers
Tests the difference-array technique by efficiently applying ranged inventory updates and then scanning totals to answer threshold queries.
Arrays & Hashingarraysdifference arrayprefix sumshashing - Arrays & HashingEasyAuto-gradedRange Sum Queries on a Mutating Snapshot
Tests ability to use prefix sums to efficiently answer multiple range-sum queries on a fixed array.
Arrays & Hashingarraysprefix sumshashing