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 475 results
- Arrays & HashingEasyAuto-gradedNeural Network Implementation of Centroid-Based Classification
Derives the weight matrix and bias vector of a single-layer network that performs soft assignment to cluster centers using squared distance.
Arrays & Hashingneural-networksclusteringlinear-algebra - Arrays & HashingMediumAuto-gradedFilter Devices by Status, Threshold, and Registration Month
Tests nested JSON navigation, timestamp parsing in UTC, date-range filtering, and numeric comparison with multiple simultaneous predicates.
Arrays & Hashingjsondatetimefilteringdata-processing - Arrays & HashingMediumAuto-gradedShortest Subarray With All K Distinct Characters Present
Tests ability to use a sliding window with a hash-count map to find the minimum-length contiguous subarray that contains every distinct character appearing in a string at least a given number of times.
Arrays & Hashingarrayshash mapsliding window - Arrays & HashingHardAuto-gradedComputing Equilibrium Bids in Single-Item Auctions
Tests understanding of dominant strategy equilibria in second-price auctions and Bayesian Nash equilibria in first-price auctions with uniform value distributions.
Arrays & Hashinggame-theoryauction-theoryexpected-valuebayesian-equilibrium - Arrays & HashingHardAuto-gradedCollect All Valid Triples in a Four-Attribute Card Game
Tests recognition of a combinatorial validity rule across four ternary attributes and the insight that any two cards uniquely determine the third, reducing O(n³) brute force to O(n²).
Arrays & Hashinghashingcombinatoricsmath - 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