Skip to content
U
uByte
Tutorials
Interview Prep
Certifications
U
uByte
// Contains Duplicate — EASY
// Category: array
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: nums = [1, 2, 3, 1]
Output: true
Contains Duplicate — Pro only
Sign up free to start solving problems. The daily challenge is always free — no account needed.
BEST VALUE
Yearly Pro
$4.17/mo
$49.99 billed yearly
Monthly Pro
$9.99/month
Cancel anytime
Create free account →
Already have an account? Sign in
← Back to Go problems