摘要: question: question: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1 Ex 阅读全文
posted @ 2018-04-19 21:48 Zhao_Gang 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 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 arr 阅读全文
posted @ 2018-04-19 14:34 Zhao_Gang 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your t 阅读全文
posted @ 2018-04-19 13:57 Zhao_Gang 阅读(108) 评论(0) 推荐(0) 编辑