Skip to main content
Contains Duplicate | AlgoCracked
AlgoCracked
ProblemsContains Duplicate
Easy61.0% acceptance
Blind75ArrayHash TableSorting

Contains Duplicate

Given an integer array nums , return true if any value appears at least twice in the array, and false if every element is distinct. Input format Each example's input is the argument list as JSON — here a single array, e.g. [[1,2,3,1]] .

Loading workspace…