FresherFresher (0–1 yrs)CodingPythonAmazonApple
Contains Duplicate
Return true if any value appears at least twice in the array; otherwise false.
Answers use simple, clear English.
Time: O(n)Space: O(n)
Confidence
#hashset#array
Return true if any value appears at least twice in the array; otherwise false.
Answers use simple, clear English.