摘要: Given a sorted integer array without duplicates, return the summary of its ranges. Example 1: Example 2: 题目标签:Array 题目给了我们一个nums array, 让我们找出它的区间总结。 这 阅读全文
posted @ 2017-09-07 09:48 Jimmy_Cheng 阅读(200) 评论(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[j] and the  阅读全文
posted @ 2017-09-07 06:16 Jimmy_Cheng 阅读(282) 评论(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 @ 2017-09-07 06:02 Jimmy_Cheng 阅读(156) 评论(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 be 阅读全文
posted @ 2017-09-07 05:19 Jimmy_Cheng 阅读(193) 评论(0) 推荐(0) 编辑