Any duplicate?

A code exercise of about 10 minutes: read the statement, solve «Any duplicate?» in the browser and get a review like in a real interview.

Code · 10 min
Loading…

Statement

Write hasDuplicate(nums): return true if any number appears more than once and false otherwise. The list can hold up to 100,000 numbers.