Search⌘ K
AI Features

Contains Duplicate

Explore techniques to check if an array contains duplicates with an optimal algorithm. Understand problem constraints and implement a solution with O(n) time and space complexity.

Statement

For a given array of integers, nums, return TRUE if it contains duplicates. Otherwise, return FALSE.

...