题目链接: HDU - 1501Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings....
分类:
其他好文 时间:
2015-04-19 00:57:26
阅读次数:
207
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.
解题思路:
思路比较简单,将原来的数求逆数。若逆数与原数相等,返回true,否则,返回false。弄清楚,负数能否回文?若溢出咋办?这里总结一下,若遇到整数的逆转,或者字符转化为整数,就需要考虑是否溢...
分类:
其他好文 时间:
2015-04-17 15:42:22
阅读次数:
115
problem:
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...
分类:
其他好文 时间:
2015-04-17 11:28:39
阅读次数:
193
题目链接: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 ...
分类:
其他好文 时间:
2015-04-16 09:06:02
阅读次数:
147
题目:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes?...
分类:
其他好文 时间:
2015-04-15 23:20:59
阅读次数:
159
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-04-15 21:25:08
阅读次数:
112
1.参数cleanclean: (default 'true'). Tells whether to clean up the index before the indexing is started.clean如果为false:则不会删除老索引中的数据,但是会更新数据(根据id进行判断)例如:数据...
分类:
其他好文 时间:
2015-04-15 11:02:47
阅读次数:
139
题目链接: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 ...
分类:
其他好文 时间:
2015-04-14 21:40:31
阅读次数:
196
http://www.diabetes.org.uk/Guide-to-diabetes/Enjoy-food/Food-and-diabetes/10-ways-to-eat-well-with-diabetes/10 ways to eat well with diabetes Whether ...
分类:
其他好文 时间:
2015-04-14 00:15:34
阅读次数:
175
IntroductionIn this article we will create a small utility using C# that tells us whether our API server is up or down.PurposeOur purpose is to check ...