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 421–450 of 475 results
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.
Auto-gradedarraysmatrixgame-simulationOutput a sequence of orthogonal-neighbor swaps that transforms a permuted square grid into alternating-row sorted form.
Model answermatrixgreedysimulationsortingSolve three distinct problems: compute the k-th element in a lexicographically ordered sequence, count valid paths under geometric constraints, and merge overlapping ranges.
Model answercombinatoricsbacktrackingtwo-pointersenumerationTests numerical stability in tail probability calculation, distribution function implementation, and handling of hypothesis testing edge cases.
Auto-gradedstatisticsnumerical-methodshypothesis-testingTests understanding of positional reasoning and incremental range tracking in permutations to identify when values 1..k occupy consecutive indices.
Auto-gradedarrayspermutationssliding-windowgreedyTests whether a target word appears in a letter grid along any single unbroken ray, locking direction after the first letter.
Auto-gradedgridstring-matchingenumerationBuild a CPU-based image transformation engine that chains grayscale, brightness, and resize operations across multiple images using pure Python.
Model answerimage-processingparallel-processingarray-manipulationTests 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.
Auto-gradedsliding windowhash mapstringstwo pointersTests the ability to combine prefix sums with hash maps to efficiently find the longest contiguous subarray whose element-wise difference from the mean of two boundary values stays within a given tolerance.
Auto-gradedarraysprefix sumshash mapsTests implementation of Bonferroni and Holm-Bonferroni procedures to control family-wise error rate when conducting multiple hypothesis tests.
Auto-gradedstatisticshypothesis-testingmultiple-testingalgorithmsTests the ability to implement the classic two-pointer merge algorithm in linear time.
Auto-gradedtwo-pointerssortingmerge-algorithmEvaluate a quadratic polynomial on a sorted array and return sorted results without using O(n log n) sorting
Auto-gradedtwo-pointerssortingmathTests your ability to scan a collection of sparse dictionaries and retrieve the one with the minimum or maximum value for a specified field.
Auto-gradeddictionariesfilteringiterationTests ability to compare multiple discount strategies with different application rules and select the best outcome while handling edge cases like empty inputs and clamping.
Auto-gradedsimulationgreedymathTests iteration logic for splitting a sequence into overlapping chunks with alternating properties
Auto-gradediterationchunkingapi-designTests state-machine simulation with coordinate systems, directional rotation logic, boundary checking, and collision detection between sequentially deployed agents.
Auto-gradedsimulationstate-machinegrid-navigationTests array processing, coordinate mapping, and ASCII visualization by building a bordered grid from unsorted integer coordinates.
Auto-gradedarraysstringshash-mapvisualizationImplement forward and backward passes for cumulative multiplication and stable softmax cross-entropy loss without autograd libraries.
Auto-gradedgradientsbackpropagationnumerical-stabilitychain-ruleTests whether a candidate can implement the binomial PMF, including the combination factor, a bias parameter, and out-of-range edge cases.
Auto-gradedprobabilitycombinatoricsmathEvaluates text formatting with precise spacing rules, wildcard-based string validation, and grid traversal with path reconstruction.
Auto-gradedstringsgraphsbfsgreedyTests understanding of ordinal comparison over structured fields versus naive text matching and proper handling of malformed input.
Auto-gradedfilteringstring-handlingedge-casesTests whether a candidate can resolve a target symbol to its integer value by following an arbitrarily ordered, acyclic chain of name-to-name and name-to-literal bindings.
Auto-gradedhash-mapstring-parsingsimulationTests ability to calculate sample sizes for superiority and non-inferiority tests, apply multiple-testing corrections, adjust for clustering, and explain sequential monitoring.
Auto-gradedstatisticsexperimental-designhypothesis-testingsample-sizeTests aggregated vote counting, majority detection, and iterative candidate elimination in ranked-choice systems.
Auto-gradedsimulationhash-mapvoting-algorithmsTests in-place array manipulation to transform a sequence into its immediate lexicographic successor, wrapping to the smallest arrangement when needed.
Auto-gradedarrayspermutationsin-placetwo-pointersTests ability to model a lazy symmetric random walk as a Markov chain, derive a closed-form hitting-time formula, and compute absorption probabilities analytically.
Auto-gradedmarkov-chainsrandom-walkprobabilityTests the ability to calculate net balances from shared expense records and generate transfers that zero out all debts.
Auto-gradedhash-mapgreedysimulationTests the ability to use prefix sums to efficiently count indices where the weighted sum to the left equals the weighted sum to the right.
Auto-gradedarraysprefix sumshash mapsTests efficient grid reasoning with blocked regions and directional movement constraints using binary search.
Auto-gradedbinary-searchgridgeometryTests understanding of hash-based deduplication while maintaining insertion order in a single pass through an array.
Auto-gradedarrayshash-setdeduplicationorder-preservation