Contains Duplicate — LeetCodeSoren Rood·FollowJan 10, 2021--ListenShareQuestion:LeetCode #217Solution:hashmap!Initially, I was using nums.counts(x), but this was exceeding the time limit. Instead, I used a hashmap (constant lookup time) which made the program run faster.Source code here.Social links here.