摘要: 这道题为简单题 题目: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example, Given n 阅读全文
posted @ 2017-09-18 23:29 唐僧洗发爱飘柔 阅读(180) 评论(0) 推荐(0)
摘要: 这道题为简单题 题目: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums 阅读全文
posted @ 2017-09-18 20:19 唐僧洗发爱飘柔 阅读(83) 评论(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 twic 阅读全文
posted @ 2017-09-18 18:53 唐僧洗发爱飘柔 阅读(91) 评论(0) 推荐(0)