Playground
HashMap & Set
10 HashMap & Set problems. Hints are optional — pass tests and submit to unlock solutions.
0/10done
- 1easy
Two Sum
hashmap · classic
- 2easy
Frequency Counter
hashmap · counting
- 3easy
Count Duplicate Elements
hashmap · set
- 4easy
Group By Property
hashmap · grouping
- 5easy
Find Common Elements
set · intersection
- 6easy
Isomorphic Strings
hashmap · bijection
- 7easy
Happy Number
set · math
- 8medium
Top K Frequent Elements
hashmap · heap · bucket
- 9medium
Longest Consecutive Sequence
set · union
- 10medium
Randomized Set
hashmap · array · design