Skip to main content

Hash Map / Set

Trade space for time using O(1) lookup to find pairs, duplicates, and frequencies.

12 problems 6 Easy 6 Medium 0 Hard

Problems (12)

Problem Link
Two Sum
Group Anagrams
Top K Frequent Elements
Valid Anagram
Longest Consecutive Sequence
Contains Duplicate
Word Pattern
Isomorphic Strings
LRU Cache
4Sum II
Number of Good Pairs
Subarray Sum Divisible by K

Enjoying this free content?

If this saved you time, buying me a coffee keeps new content coming.

Buy me a coffee
Buy me a coffee