码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
Ural 1096-Get the Right Route Plate!(bfs)
1096. Get the Right Route Plate! Time limit: 1.0 second Memory limit: 64 MB Everybody who had ridden a Ekaterinburg bus could notice that on the inner side of the plate with the number of t...
分类:其他好文   时间:2014-08-28 09:43:49    阅读次数:331
LeetCode: Maximum Depth of Binary Tree
LeetCode: Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from...
分类:其他好文   时间:2014-08-27 21:54:58    阅读次数:234
poj 3252 Round Numbers(数位dp)
http://poj.org/problem?id=3252 "Round Number "被称为其二进制形式中0的个数比1的个数多。求[x,y]区间内“Round Number”的个数。 计数的时候最重要的是处理前导零,前导零不算数,因此与SCOI2009一样,增加一个标记变量first,标志着当前这意味是不是首位,不是首位的话1和0的个数都为0,否则根据枚举的1或0进行记忆...
分类:其他好文   时间:2014-08-27 20:36:48    阅读次数:211
Single Number和Single Number II
1 Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear run...
分类:其他好文   时间:2014-08-27 18:38:28    阅读次数:174
Beans Game(博弈 | | DP)zoj 3057
Beans GameTime Limit: 5 Seconds Memory Limit: 32768 KBThere are three piles of beans. TT and DD pick any number of beans from any pile or the same num...
分类:其他好文   时间:2014-08-27 18:32:48    阅读次数:150
【LeetCode】- Valid Number(有效数字)
[ 问题: ] Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before implementing one....
分类:其他好文   时间:2014-08-27 16:43:58    阅读次数:177
android.content.ActivityNotFoundException: No Activity found to handle Intent
代码如下: public void sendMessage(String number) { if (TextUtils.isEmpty(number)) { return; } Intent intent = new Inten...
分类:移动开发   时间:2014-08-27 16:03:27    阅读次数:950
hdu 3709 Balanced Number(数位dp)
http://acm.hdu.edu.cn/showproblem.php?pid=3709 平衡数。枚举支点的位置,同时记录力臂。 dp[i][j][k]表示当前处理到第i个数,支点的位置是j,当前的力臂是k。因此判断某个数是否是平衡数,只需判断递归终点时力臂是否为0。 #include #include #include #include #include #i...
分类:其他好文   时间:2014-08-27 14:48:47    阅读次数:180
leetcode之Gray Code
Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the cod...
分类:其他好文   时间:2014-08-27 14:45:48    阅读次数:236
Oracle 左外连接的一些测试
为了更加深入左外连接,我们做一些测试,外连接的写法有几种形式,我们可以通过10053跟踪到最终SQL转换的形式。 --初始化数据 create table A (   id number,   age number ); create table b (   id number,   age number ); insert into A values(1,10); in...
分类:数据库   时间:2014-08-27 14:43:18    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!