LeetCode 筆記|217. Contains Duplicate
Given an integer array
nums
, returntrue
if any value appears at least twice in the array, and returnfalse
if every element is distinct.
(給定一整數陣列,判斷其中是否含重複的數字。)
Example:
Input: nums = [1,2,3,1]
Output: true