档案日期2015的21

2015年5月25日 - 2015年5月31日

[LeetCode]Contains Duplicate

题目描述:

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.

题目大意:

给定一个整数数组,判断数组中是否包含重复元素。如果数组中任意一个数字出现了至少两次,你的函数应该返回true,如果每一个元素都是唯一的,返回false。 ...

继续阅读

每日归档

上周

下周

归档