码迷,mamicode.com
首页 >  
搜索关键字:consecutive numbers    ( 8082个结果
【LeetCode】Combination Sum
Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thes...
分类:其他好文   时间:2014-09-09 10:54:08    阅读次数:190
Leetcode: Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique per...
分类:其他好文   时间:2014-09-08 00:55:26    阅读次数:269
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-09-07 23:40:25    阅读次数:202
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-09-07 22:19:15    阅读次数:280
Leetcode 贪心 Longest Consecutive Sequence
Longest Consecutive Sequence  Total Accepted: 19169 Total Submissions: 68303My Submissions Given an unsorted array of integers, find the length of the longest consecutive elements sequence...
分类:其他好文   时间:2014-09-07 21:12:55    阅读次数:294
Minimum Path Sum <leetcode>
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:其他好文   时间:2014-09-07 11:00:24    阅读次数:213
HDU 4133
注意题目中的一句话:If a number m has bigger evaluating value than all the numbers smaller than it。。。这让我重新想过反素数的定义,应该 是比n小的数的约数的个数都 小于 n。所以,应该取最小的一个值#include #i...
分类:其他好文   时间:2014-09-06 17:21:53    阅读次数:158
Triangle --- 至顶向下求最小值
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-09-06 17:20:33    阅读次数:229
Reduced ID Numbers (memset 的关键用处)
memset...
分类:其他好文   时间:2014-09-06 11:01:33    阅读次数:243
Leetcode: Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:其他好文   时间:2014-09-06 05:27:22    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!