Easy

Quiz

#217 Contains Duplicate

APPROACH

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.

1 of 4

What is the optimal approach for this problem?