Skip to content

Latest commit

 

History

History
executable file
·
13 lines (5 loc) · 354 Bytes

File metadata and controls

executable file
·
13 lines (5 loc) · 354 Bytes

题目

Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct.

解题思路

见程序注释