Contains Duplicate
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.
Contains Duplicate

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.

Example 1:
Input: [1,2,3,1]
Output: true
Input
arr =[1,2,3,1]
nums10213213
HashSet

Empty

Variables
No variables to display
DepthFunction Call
1containsDuplicate(nums=[1, 2, 3, 1])
0/12