Topic
Arrays & Hashing interview problems
Two pointers, prefix sums, hash maps and sliding windows. 475 original problems, each with hidden test cases you can run in the browser.
135 easy303 medium37 hard
Showing 391–420 of 475 results
Derives the weight matrix and bias vector of a single-layer network that performs soft assignment to cluster centers using squared distance.
Auto-gradedneural-networksclusteringlinear-algebraTests nested JSON navigation, timestamp parsing in UTC, date-range filtering, and numeric comparison with multiple simultaneous predicates.
Auto-gradedjsondatetimefilteringdata-processingTests 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.
Auto-gradedarrayshash mapsliding windowTests understanding of dominant strategy equilibria in second-price auctions and Bayesian Nash equilibria in first-price auctions with uniform value distributions.
Auto-gradedgame-theoryauction-theoryexpected-valuebayesian-equilibriumTests 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²).
Auto-gradedhashingcombinatoricsmathMeasures violations of a velocity threshold by calculating duration and magnitude of excess speed from sampled position sequences.
Auto-gradedarrayssimulationnumerical-methodsTests whether candidates can compute F1, confusion matrix counts, and deployment cost for two classifier configurations, then select the cheaper model to deploy.
Auto-gradedmachine-learningclassificationevaluation-metricsTests left-join logic and fallback lookups by requiring every person to appear with either their mapped ID or a supplied default.
Auto-gradedhash-maplookupleft-joinTests financial modeling with expected-value decision-making, break-even sensitivity analysis, and revenue-based fee structures across expansion scenarios.
Auto-gradedexpected-valuefinancial-modelingsensitivity-analysisDetermine whether computational kernels are limited by arithmetic throughput or memory bandwidth using roofline analysis.
Auto-gradedroofline-modelperformance-analysismemory-bandwidthcompute-boundTests vector similarity computation, efficient top-k selection with deterministic tie-breaking, and understanding of distance metrics in embedding spaces.
Auto-gradedvectorssimilarityrankingnumerical-methodsTests array manipulation and carry logic when adding one to a number stored as an array of digits.
Auto-gradedarrayssimulationmathTests understanding of MLE derivation for bounded distributions and bias correction in parameter estimation.
Auto-gradedstatisticsestimationprobabilitymleEfficiently count pairs of points where both coordinate differences are at most 2, testing hash-based spatial grouping with duplicate handling.
Auto-gradedarrayshashinggeometrycombinatoricsTests matrix traversal and boundary extraction by sorting each rectangular ring of a matrix independently in clockwise order.
Auto-gradedmatrixtraversalsortingTests efficient sliding window maintenance to track element frequency across consecutive fixed-length subarrays.
Auto-gradedsliding-windowarrayfrequency-countingTests 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.
Auto-gradedarrayssliding-windowsimulationTests your ability to perform a deep copy of a nested list structure while preserving integer-indexed references between elements.
Auto-gradedarraysdeep-copylist-manipulationTests ability to perform temporal joins on sorted time-series data with per-key state tracking and careful timestamp comparison.
Auto-gradedtime-seriestwo-pointershash-tableTests prefix-minimum optimization to select two array indices under ordering constraints while minimizing their combined cost.
Auto-gradedgreedyprefix-minimumarray-optimizationTests time-series grouping, datetime arithmetic, gap-based segmentation, and aggregation with distinct counts.
Auto-gradedtime-seriesgroupingdatetimeaggregationTests understanding of prefix parity tracking and combinatorial counting to efficiently solve subarray problems.
Auto-gradedprefix-sumtwo-pointersmathCompute probabilities of observing specific gender counts in survey samples under binomial and hypergeometric models.
Auto-gradedprobabilitystatisticscombinatoricsTests vectorized linear projection, pairwise distance computation, and nearest-neighbor selection with tie-breaking.
Auto-gradedmatrix-operationsdistance-metricsvectorizationTests efficient subarray counting using prefix sum differences tracked in a hash map.
Auto-gradedprefix-sumhash-mapsubarrayTests array slicing, numerical stability in exponential calculations, 2D kernel generation, and geometric inequality validation in a single bundled function.
Auto-gradedmathnumerical-methodsgeometryTests whether you can set up a Markov chain for a pattern race, derive absorption probabilities, and compute a conditional expected stopping time.
Auto-gradedmarkov-chainsprobabilityexpected-value- Multiply Two MatricesMedium
Tests understanding of matrix multiplication mechanics, nested iteration, and accumulation patterns.
Auto-gradedmatrixnested-loopsmath 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.
Auto-gradedarraystwo pointerssliding windowCalculate and compare expected waiting times for transit services with different repeating gap patterns using length-biased sampling.
Auto-gradedprobabilityexpected-valueinspection-paradox