NeetCode All · Hashmap Existence / Complement Lookup
Use a hashmap or set purely to answer 'have I seen this before' or 'does the complement exist', not to count occurrences.
Sheet Problems: 6
Category: Hashing
Featured Problems (6)
Explore More Patterns in NeetCode All
Track your progress across all 973 problems in this curriculum roadmap.