algorithm weekly ~ 2022.02.06
217. Contains Duplicate Contains Duplicate - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct. O(n long n) + O(n) bool containsDuplicate(vector& n..
Developer/LEETCODE
2022. 2. 4. 11:47