上一页 1 ··· 21 22 23 24 25
摘要: import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * Given a set of candidate numbers (C) (without duplicates) and a target number (T), * find all unique combinations ... 阅读全文
posted @ 2017-07-03 17:07 stAr_1 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 阅读全文
posted @ 2017-06-30 16:48 stAr_1 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 阅读全文
posted @ 2017-06-28 22:37 stAr_1 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 阅读全文
posted @ 2017-06-27 16:43 stAr_1 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 阅读全文
posted @ 2017-06-21 11:37 stAr_1 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space. 用的 阅读全文
posted @ 2017-05-14 22:11 stAr_1 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. 阅读全文
posted @ 2017-05-13 22:20 stAr_1 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 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 nums = [0, 1, 阅读全文
posted @ 2017-05-13 21:01 stAr_1 阅读(132) 评论(0) 推荐(0) 编辑
摘要: n,m是需要判断的元素的横纵坐标,rl,cl是数组的横纵长度 阅读全文
posted @ 2017-05-11 15:45 stAr_1 阅读(739) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input:nums = 阅读全文
posted @ 2017-05-06 19:34 stAr_1 阅读(816) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25