码迷,mamicode.com
首页 >  
搜索关键字:whether    ( 1481个结果
Leetcode 树 Symmetric Tree
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie Symmetric Tree  Total Accepted: 13991 Total Submissions: 44240 Given a binary tree, check whether it is a mirror of itself ...
分类:其他好文   时间:2014-05-14 00:52:07    阅读次数:372
Leetcode | Interleaving String
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.For example,Given:s1 = "aabcc",s2 = "dbbca",When s3 = "aadbbcbcac", retur...
分类:其他好文   时间:2014-05-13 18:11:42    阅读次数:249
Leetcode 数 Palindrome Number
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie Palindrome Number  Total Accepted: 12165 Total Submissions: 41736 Determine whether an integer is a palindrome. Do this wit...
分类:其他好文   时间:2014-05-13 05:28:07    阅读次数:253
JavaScript中的两个等号(==)和三个等号(===)
JavaScript中的两个等号(==)和三个等号(===):Determining whether two variables are equivalent is one of the most important operations in programming.
分类:编程语言   时间:2014-05-09 11:44:17    阅读次数:579
Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2014-05-09 09:28:18    阅读次数:253
poj 1410 Intersection
DescriptionYou are to write a program that has to decide whether a given line segment intersects a given rectangle.An example:line: start point: (4,9)...
分类:其他好文   时间:2014-05-07 13:55:45    阅读次数:387
LeetCode OJ - Symmetric Tree && Same Tree
这两道题,大同小异。 我都是用BFS,在遍历的过程,判断结构是否相同/对称,值是否相同。下面是AC代码: 1 /** 2 * Given a binary tree, check whether it is a mirror of itself (ie, symmetric aroun...
分类:其他好文   时间:2014-05-05 09:48:26    阅读次数:401
Leetcode | Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:其他好文   时间:2014-05-01 19:48:19    阅读次数:344
problem-whether two headless linked lists cross
whether two nohead-linkedlist have the same end 个人信息:就读于燕大本科软件工程专业 目前大三; 本人博客:google搜索“cqs_2012”即可; 个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献; 博客内容:在无头节点的链表里删除元素; 博客时间:2014-4-15; 编程语言:C+...
分类:其他好文   时间:2014-05-01 18:13:31    阅读次数:352
求一个数的最大素因子(python实现)
首先想到的是,将这个数进行素因子分解,得到所有的因子,然后取最大的。 首先写一个判断一个数是否是素数的方法: #judge a number whether a prime def judgePrime(self,number,pme): if number < 2: ...
分类:编程语言   时间:2014-05-01 09:05:26    阅读次数:3333
1481条   上一页 1 ... 146 147 148 149 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!