Posted on September 30, 2020September 30, 2020 Description Submission class Solution { public: bool containsDuplicate(vector<int>& nums) { map<int, int> m; for(auto n: nums) { m[n]++; if(m[n] > 1) return true; } return false; } }; By Bill0412 Easy LeetCode