0
/ 10
Given an array of integers, return true if there is any duplicate in the array. If there are no duplicates, then return false. Note that...
Given an array of integers, return true if there is any duplicate in the array. If there are no duplicates, then
return false. Note that the array might be empty (i.e. 0 length array).
Examples:
duplicates({0,1,2,5}) -> false
duplicates({0,1,2,1}) -> true
Your feedback will appear here when you check your answer.