121dup?
easyBlind 75

Contains Duplicate

Contains Duplicate is a classic scan-and-record problem: the right bookkeeping beats brute force. It's a great warm-up that builds data-structure instincts without a ton of moving parts. Watch your edge cases around repeats, and be clear about what your map is storing.

Arrays & Hashing
๐Ÿ‘ฉโ€๐Ÿซ
๐Ÿ‘จโ€๐Ÿ’ผ

Meet Allison & Tim

Your AI coaches

Practice coding interviews out loud with real-time voice coaching. Your code actually runs.

Free ยท No sign up ยท Early access
1Check for Duplicateseasy
2Part 2

Start Part 1 to unlock your next challenge

Based onLeetCode

Get this problem sent to your inbox