https://leetcode.com/explore/interview/card/top-interview-questions-easy/92/array/578/
Explore - LeetCode
LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore.
leetcode.com
javascript
닫기/**
* @param {number[]} nums
* @return {boolean}
*/
var containsDuplicate = function (nums) {
const set = new Set(nums);
return set.size != nums.length;
};
GitHub : https://github.com/developeSHG/Algorithm-LeetCode/tree/main/contains-duplicate
GitHub - developeSHG/Algorithm-LeetCode: 릿코드 소스코드
릿코드 소스코드. Contribute to developeSHG/Algorithm-LeetCode development by creating an account on GitHub.
github.com
'Coding Test > LeetCode' 카테고리의 다른 글
[LeetCode] Two Sum (0) | 2024.10.29 |
---|---|
[LeetCode] (Strings) Lv Easy. First Unique Character in a String (0) | 2023.02.06 |
[LeetCode] (Array) Lv Easy. Rotate Array (0) | 2023.01.31 |
[LeetCode] (Design) Lv Easy. Shuffle an Array (0) | 2023.01.25 |
[LeetCode] (Math) Lv Easy. Fizz Buzz (0) | 2023.01.22 |
댓글