4. Contains Duplicate
Determine whether the integer array nums contains any duplicate values.
उदाहरण 1:
इनपुट: nums = [1,2,3,1] आउटपुट: true
उदाहरण 2:
इनपुट: nums = [1,2,3,4] आउटपुट: false
सीमाएँ:
1 <= nums.length <= 10^5
Determine whether the integer array nums contains any duplicate values.
इनपुट: nums = [1,2,3,1] आउटपुट: true
इनपुट: nums = [1,2,3,4] आउटपुट: false
1 <= nums.length <= 10^5