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 361–390 of 435 results
- Arrays & HashingMediumAuto-gradedCompute Speeding Penalties from Trajectory Data
Measures violations of a velocity threshold by calculating duration and magnitude of excess speed from sampled position sequences.
Arrays & Hashingarrayssimulationnumerical-methods - Arrays & HashingMediumAuto-gradedBinary Classifier Threshold & Cost Trade-off Calculator
Tests whether candidates can compute F1, confusion matrix counts, and deployment cost for two classifier configurations, then select the cheaper model to deploy.
Arrays & Hashingmachine-learningclassificationevaluation-metrics - Arrays & HashingEasyAuto-gradedAssign Each Person a Tracked ID or a Fallback Value
Tests left-join logic and fallback lookups by requiring every person to appear with either their mapped ID or a supplied default.
Arrays & Hashinghash-maplookupleft-join - Arrays & HashingMediumAuto-gradedAmusement Park Capacity Expansion: Profit & Expected Value
Tests financial modeling with expected-value decision-making, break-even sensitivity analysis, and revenue-based fee structures across expansion scenarios.
Arrays & Hashingexpected-valuefinancial-modelingsensitivity-analysis - Arrays & HashingMediumAuto-gradedClassify Kernel Bottlenecks Using the Roofline Model
Determine whether computational kernels are limited by arithmetic throughput or memory bandwidth using roofline analysis.
Arrays & Hashingroofline-modelperformance-analysismemory-bandwidthcompute-bound - Arrays & HashingMediumAuto-gradedTop-K Document Retrieval by Cosine Similarity
Tests vector similarity computation, efficient top-k selection with deterministic tie-breaking, and understanding of distance metrics in embedding spaces.
Arrays & Hashingvectorssimilarityrankingnumerical-methods - Arrays & HashingMediumAuto-gradedAdd One to Array-Represented Number
Tests array manipulation and carry logic when adding one to a number stored as an array of digits.
Arrays & Hashingarrayssimulationmath - Arrays & HashingHardAuto-gradedMaximum Likelihood Estimation for Uniform Distribution Bounds
Tests understanding of MLE derivation for bounded distributions and bias correction in parameter estimation.
Arrays & Hashingstatisticsestimationprobabilitymle - Arrays & HashingMediumAuto-gradedCount Close Point Pairs Within Distance Threshold
Efficiently count pairs of points where both coordinate differences are at most 2, testing hash-based spatial grouping with duplicate handling.
Arrays & Hashingarrayshashinggeometrycombinatorics - Arrays & HashingMediumAuto-gradedOrganize Matrix Rings by Sorting Perimeters
Tests matrix traversal and boundary extraction by sorting each rectangular ring of a matrix independently in clockwise order.
Arrays & Hashingmatrixtraversalsorting - Arrays & HashingMediumAuto-gradedCount Occurrences in Fixed-Size Subarrays
Tests efficient sliding window maintenance to track element frequency across consecutive fixed-length subarrays.
Arrays & Hashingsliding-windowarrayfrequency-counting - Arrays & HashingEasyAuto-gradedQualifying Run Detector in a Timestamped Event Log
Tests whether a candidate can scan a sorted event log in one pass to count maximal same-type runs that meet minimum length and duration thresholds.
Arrays & Hashingarrayssliding-windowsimulation - Arrays & HashingEasyAuto-gradedClone a List with Index-Based Cross References
Tests your ability to perform a deep copy of a nested list structure while preserving integer-indexed references between elements.
Arrays & Hashingarraysdeep-copylist-manipulation - Arrays & HashingEasyAuto-gradedAlign Temperature Readings with Prior Humidity Data
Tests ability to perform temporal joins on sorted time-series data with per-key state tracking and careful timestamp comparison.
Arrays & Hashingtime-seriestwo-pointershash-table - Arrays & HashingMediumAuto-gradedMinimum Round-Trip Cost with Ordered Dates
Tests prefix-minimum optimization to select two array indices under ordering constraints while minimizing their combined cost.
Arrays & Hashinggreedyprefix-minimumarray-optimization - Arrays & HashingHardAuto-gradedGroup Activity Logs into Time-Based Sessions
Tests time-series grouping, datetime arithmetic, gap-based segmentation, and aggregation with distinct counts.
Arrays & Hashingtime-seriesgroupingdatetimeaggregation - Arrays & HashingMediumAuto-gradedSubarrays with Odd Zero Frequency
Tests understanding of prefix parity tracking and combinatorial counting to efficiently solve subarray problems.
Arrays & Hashingprefix-sumtwo-pointersmath - Arrays & HashingHardAuto-gradedSurvey Gender Distribution Probability
Compute probabilities of observing specific gender counts in survey samples under binomial and hypergeometric models.
Arrays & Hashingprobabilitystatisticscombinatorics - Arrays & HashingHardAuto-gradedClassify Queries by Nearest Reference After Linear Transform
Tests vectorized linear projection, pairwise distance computation, and nearest-neighbor selection with tie-breaking.
Arrays & Hashingmatrix-operationsdistance-metricsvectorization - Arrays & HashingMediumAuto-gradedCount Contiguous Segments Summing to K
Tests efficient subarray counting using prefix sum differences tracked in a hash map.
Arrays & Hashingprefix-sumhash-mapsubarray - Arrays & HashingMediumAuto-gradedFour Utility Functions: Crop, Softmax, Gaussian, Triangle
Tests array slicing, numerical stability in exponential calculations, 2D kernel generation, and geometric inequality validation in a single bundled function.
Arrays & Hashingmathnumerical-methodsgeometry - Arrays & HashingHardAuto-gradedCoin Flip Race: HHT vs HTH Probability and Conditional Wait
Tests whether you can set up a Markov chain for a pattern race, derive absorption probabilities, and compute a conditional expected stopping time.
Arrays & Hashingmarkov-chainsprobabilityexpected-value - Arrays & HashingMediumAuto-gradedMultiply Two Matrices
Tests understanding of matrix multiplication mechanics, nested iteration, and accumulation patterns.
Arrays & Hashingmatrixnested-loopsmath - Arrays & HashingMediumAuto-gradedFind Longest Subarray with Bounded Absolute Difference
Tests the ability to use two pointers alongside auxiliary tracking structures to find the longest contiguous subarray where max−min does not exceed a given threshold.
Arrays & Hashingarraystwo pointerssliding window - Arrays & HashingHardAuto-gradedExpected Wait Time for Repeating Train Schedules
Calculate and compare expected waiting times for transit services with different repeating gap patterns using length-biased sampling.
Arrays & Hashingprobabilityexpected-valueinspection-paradox - 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 & 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 & 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