neetcode-gh / leetcode

Leetcode solutions
MIT License
5.55k stars 2.29k forks source link

Update 0219-contains-duplicate-ii.js #3515

Open HunterHester opened 3 months ago

HunterHester commented 3 months ago

Shortens and simplifies current solution by changing hashmap into a hashset.

Important

Please make sure the file name is lowercase and a duplicate file does not already exist before merging.