??
问题描述:
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
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
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
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
练习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
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
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
【题目】
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
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
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