码迷,mamicode.com
首页 >  
搜索关键字:ugly number    ( 27156个结果
LeetCode OJ - Minimum && Maximum Depth of Binary Tree
这两道题用递归的解法都很简单,只是稍有不同。下面是AC代码: 1 /** 2 * Given a binary tree, find its minimum depth. 3 * the minimum depth is the number of nodes along th...
分类:其他好文   时间:2014-05-10 08:47:32    阅读次数:271
Edit Distance
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:其他好文   时间:2014-05-10 01:09:28    阅读次数:325
Leetcode | Edit Distance
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have t...
分类:其他好文   时间:2014-05-09 19:09:35    阅读次数:318
sql 分页row_number() over(order by key)
select * from ( select row_number() over(order by BD008_001) as row ,* from ...
分类:数据库   时间:2014-05-09 16:56:57    阅读次数:328
model number
// test.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include "winioctl.h"#define IOCTL_STORAGE_QU...
分类:其他好文   时间:2014-05-05 10:52:44    阅读次数:370
Vim的map
linux系统下.vimrc文件(这个文件可以在家目录新建);这个文件记录着vim的配置信息;如:"显示行号set number"键映射map“如按F5,在word的前后加入{}map i{ea}
分类:其他好文   时间:2014-05-05 10:12:32    阅读次数:274
typeof与instanceof
typeof用以获取一个变量或者表达式的类型,typeof一般只能返回如下几个结果:number,boolean,string,function(函数),object(NULL,数组,对象),undefined。如:alert(typeof (123));//typeof(123)返回"number...
分类:其他好文   时间:2014-05-05 09:37:22    阅读次数:435
LeetCode: plusOne 题解
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 at...
分类:其他好文   时间:2014-05-04 19:46:18    阅读次数:372
poj 1430 Binary Stirling Numbers
Binary Stirling NumbersTime Limit:1000MSMemory Limit:10000KTotal Submissions:1761Accepted:671DescriptionThe Stirling number of the second kind S(n, m)...
分类:其他好文   时间:2014-05-04 19:34:32    阅读次数:434
codechef Permutation Cycles 题解
We consider permutations of the numbers 1,..., N for some N. By permutation we mean a rearrangment of the number 1,...,N. For example 2  4  5  1  7  6  3  8 is a permutation of 1,2,...,8. Of cours...
分类:其他好文   时间:2014-05-04 18:38:14    阅读次数:341
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!