Contains Duplicate

Given an integer array nums, return true if any value appears more than once in the array, otherwise return false.

Example 1:

Explanation: The number 3 appears twice in the array.

Example 2:

Constraints:

  • 0 <= strs.length < 100
  • 0 <= strs[i].length < 200
Loading...