Check whether an integer array contains a duplicate value
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Decide whether an integer array contains any value that appears more than once, returning a boolean. It tests picking a data structure with fast membership checks, a single pass with an early exit, and reasoning about time and space complexity.