摘要: 题目: 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 阅读全文
posted @ 2015-11-22 23:28 YRB 阅读(347) 评论(0) 推荐(0)
摘要: 题目: Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should 阅读全文
posted @ 2015-11-22 23:20 YRB 阅读(960) 评论(0) 推荐(0)
摘要: 题目: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For 阅读全文
posted @ 2015-11-22 12:47 YRB 阅读(1403) 评论(0) 推荐(0)