Solution: Contains Duplicate

Let's solve the Contains Duplicate problem using the Knowing What To Track pattern.

Statement

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

Constraints:

  • 11 \leq nums.length 105\leq 10^5

  • 109-10^9 \leq ...