KatInterview

practice a little every day — you've got this ♡

Arrays & Hashing Interview Problems

Practice 5967 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.

5967
Problems
2210
Auto-graded
15
Topics
272
Added today

Showing 31–40 of 40 results

  • Arrays & HashingMediumModel answer
    Longest Streak of Distinct Viewing History

    Find the longest contiguous subsequence in a viewing history array where no show appears more than once (case-insensitive).

    Arrays & Hashingsliding-windowhash-maptwo-pointers
  • Arrays & HashingEasyModel answer
    Identify the Most Common Function Call in Application Logs

    Determine which function name occurs most often in a list of log entries and report its occurrence count.

    Arrays & Hashinghash-mapfrequency-countingiteration
  • Arrays & HashingMediumModel answer
    Three-Problem Algorithmic Challenge Set

    Solve three independent problems: tournament match counting, grid traversal with movement commands, and finding maximum sum of digit-disjoint pairs.

    Arrays & Hashingsimulationgraph-traversalbit-manipulationdfs
  • Arrays & HashingMediumModel answer
    Sliding Tile Board: Merge Logic for All Four Directions

    Implement the slide-and-merge move for a 2048-style grid in all four directions, sharing a single merge routine across every direction.

    Arrays & Hashingarrayssimulationmatrix
  • Arrays & HashingMediumModel answer
    Proportional Stratified Sampling with Largest Remainder Allocation

    Sample records from grouped data while preserving stratum proportions, using the largest remainder method to allocate exact counts and seeded random selection.

    Arrays & Hashingsamplinggroupinghash-tablerandomization
  • Arrays & HashingHardModel answer
    Rearrange Grid Cells into Alternating-Row Order via Adjacent Swaps

    Output a sequence of orthogonal-neighbor swaps that transforms a permuted square grid into alternating-row sorted form.

    Arrays & Hashingmatrixgreedysimulationsorting
  • Arrays & HashingMediumModel answer
    Three Algorithm Challenges: Enumeration, Backtracking, and Merging

    Solve three distinct problems: compute the k-th element in a lexicographically ordered sequence, count valid paths under geometric constraints, and merge overlapping ranges.

    Arrays & Hashingcombinatoricsbacktrackingtwo-pointersenumeration
  • Arrays & HashingMediumModel answer
    Parallel Image Pipeline Without External Libraries

    Build a CPU-based image transformation engine that chains grayscale, brightness, and resize operations across multiple images using pure Python.

    Arrays & Hashingimage-processingparallel-processingarray-manipulation
  • Arrays & HashingMediumModel answer
    Chess Queen Line-of-Sight Attack Counting

    Calculate how many chess queens can attack each query position, first without obstacles, then accounting for blocking pieces on the board.

    Arrays & Hashinggeometryhash-mapbinary-searchsorting
  • Arrays & HashingMediumModel answer
    Build an Annotation Assignment Schedule

    Construct a valid work schedule assigning human reviewers to tasks under minimum-coverage and no-repeat constraints, then extend it to stay balanced in every prefix.

    Arrays & Hashingconstructiveschedulingcombinatorics