Search
⌘K

Leetcode 217. Contains Duplicate

Return true if any integer appears at least twice in the array and false if all elements are distinct. Array length can be up to 1e5 with values up to ±1e9.

Asked at:

Google

Google


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid October, 2024

Google

Google

Mid-level

Determine if each distinct number appears at least twice in a list of numbers

Comments

Your account is free and you can post anonymously if you choose.