码迷,mamicode.com
首页 >  
搜索关键字:whether    ( 1481个结果
leetcode-9 Palindrome Number
?? 问题描述: Determine whether an integer is a palindrome. Do thiswithout extra space. click to showspoilers. Some hints: Could negative integers be palindromes? (ie, -1) If yo...
分类:其他好文   时间:2015-04-04 09:18:33    阅读次数:137
Lintcode: O(1) Check Power of 2
Using O(1) time to check whether an integer n is a power of 2.ExampleFor n=4, return trueFor n=5, return falseChallengeO(1) timeTags Expand 这道题考察bit m...
分类:其他好文   时间:2015-04-02 06:39:43    阅读次数:162
MRP4 -- Dependent requirements ind. for individual and coll. reqmts
Dependent requirements ind. for individual and coll. reqmtsIndicator determining whether the following requirements are allowed for the dependent requ...
分类:其他好文   时间:2015-04-01 00:18:57    阅读次数:230
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", return true. When s3 = "aadbbbaccc", ret...
分类:其他好文   时间:2015-03-31 16:08:55    阅读次数:106
【SICP练习】145 练习4.1
练习4-1原文Exercise 4.1. Notice that we cannot tell whether the metacircular evaluator evaluates operands from left to right or from right to left. Its evaluation order is inherited from the underlying Li...
分类:其他好文   时间:2015-03-29 18:08:21    阅读次数:136
LeetCode-101 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 / \ ...
分类:其他好文   时间:2015-03-29 00:30:42    阅读次数:154
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 / 2 2 / \ / 3 4 4 3 But the fo...
分类:其他好文   时间:2015-03-28 11:34:30    阅读次数:102
【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", return true. When s3 = "aadbbb...
分类:其他好文   时间:2015-03-21 20:03:14    阅读次数:124
LeetCode – Refresh – One Edit Distance
Scanning from start to end. If find a mismatch and one is larger size, keep search from the previous char of shorter one.Finally check whether found a...
分类:其他好文   时间:2015-03-21 16:56:01    阅读次数:142
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他好文   时间:2015-03-20 12:19:32    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!