Skip to content

Hash Table Problems

Hash tables provide O(1) average lookup, making them the go-to for frequency counting, duplicate detection, and two-sum style problems. These problems train you to think in terms of key-value mappings.

16 problems

Title Difficulty
Boyer–Moore Pattern Search Hard
Find All Duplicates in an Array Medium
Frog Jump Hard
Randomized Collection with Duplicates Hard
Largest Rectangle with Equal Zeros and Ones Hard
LRU Cache Hard
Max Points on a Line Medium
Minimum Window Substring Hard
Next Greater Element I Easy
Pair with a Given Difference Easy
Palindrome Pairs Hard
Duplicate Character Counts Easy
Group Anagrams Medium
Subarray Sum Equals K Medium
Subarray Sums Divisible by K Medium
Two Sum Easy