Skip to main content

One doc tagged with "Contains duplicate"

View all tags

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.