码迷,mamicode.com
首页 >  
搜索关键字:number of islands    ( 27069个结果
Maximum Depth of Binary Tree 二叉树的最大深度
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-10-26 07:58:51    阅读次数:161
leetcode第39题--Combination Sum II
题目:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each numb...
分类:其他好文   时间:2014-10-26 06:43:06    阅读次数:171
[Leetcode] Plus One
题目:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is...
分类:其他好文   时间:2014-10-25 22:56:10    阅读次数:164
3Sum Closest
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:其他好文   时间:2014-10-25 22:53:15    阅读次数:159
leetcode第38题--Combination Sum
题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated ...
分类:其他好文   时间:2014-10-25 22:50:47    阅读次数:267
HDU 4162 Shape Number
题意: 一串链码  用差分的最小表示法表示 思路: 其实就是最小表示法的模版题… 代码: #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define N 60...
分类:其他好文   时间:2014-10-25 21:32:20    阅读次数:171
UVa 12377 - Number Coding
题目:一个数可以用一种素数元素的个数表示的形式,43560=23×32×51×112表示成41223;             第一个数是素因子的种类,第二个是每个素因子的个数递增排列;给你一个这种形式的串,             问原来的数可能有几种情况。 分析:数论,计数原理,组合数学。             对于每个串,第一个数字一定是素因子的种类数;             ...
分类:其他好文   时间:2014-10-25 20:09:34    阅读次数:201
【LeetCode】 Maximum Depth of Binary Tree
题目 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node....
分类:其他好文   时间:2014-10-25 18:50:01    阅读次数:137
《BI项目笔记》创建时间维度(2)
创建步骤:序号选择的属性重命名后的名称属性类别1DateKeyDateKey常规2Month KeyMonth Key月份3English Month NameEnglish Month Name每年的某一月4Month Number Of YearMonth Number Of Year常规5Ca...
分类:其他好文   时间:2014-10-25 18:44:46    阅读次数:177
POJ 2738 Two Ends(记忆化)
DescriptionIn the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Play...
分类:其他好文   时间:2014-10-25 18:32:56    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!