What does Contains Duplicate ask you to detect?
Practice this question from Contains Duplicate - Set Pattern Practice Quiz, with options and an explanation.
Question
What does Contains Duplicate ask you to detect?
Option A
Whether every value is positive
Option B — Correct answer
Whether any value appears at least twice
Option C
The first missing value
Option D
The maximum value in the array
Explanation
It asks whether any value appears at least twice.