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 |
Browse by Topic
ArrayBFSBacktrackingBinary SearchBinary Search TreeBinary TreeBit ManipulationBitmaskBoyer-Moore VotingCombinatoricsDFSDesignDivide and ConquerDynamic ProgrammingGeometryGraphGreedyHash TableHeapInorder TraversalInterval DPIteratorLinked ListMathMatrixMemoizationMerge SortMinimum Spanning TreeMonotonic QueueMonotonic StackPermutation CyclesPostorder TraversalPrefix SumQueueRadix SortRecursionShortest PathSimulationSliding WindowSortingSorting&SearchingStackStack&QueueStringString MatchingStrongly Connected ComponentsTopological SortTreeTrieTriesTwo PointersUnion Find