Given an array of integers, find ifthe array contains any duplicates. Your function should returntrueif any value appears at least twice inthe array, andit should returnfalseifevery element is distinct.
Subscribe to see which companies asked this question.