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-04-25 00:20:01
阅读次数:
109
#检查版本:# PowerShell script to display SharePoint products from the registry.Param( # decide on whether all the sub-components belonging to the product....
分类:
其他好文 时间:
2015-04-24 12:19:03
阅读次数:
144
Suppose you have a tblRoom and tblUserInfo. Now, you need to select all the rooms regardless of whether the room has user information or not. This cal...
分类:
其他好文 时间:
2015-04-22 17:34:47
阅读次数:
209
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)...
分类:
其他好文 时间:
2015-04-21 20:22:35
阅读次数:
130
equalspublic boolean equals(Object obj)Indicates whether some other object is "equal to" this one.The equals method implements an equivalence relation...
分类:
编程语言 时间:
2015-04-21 00:12:25
阅读次数:
249
A Boltzmann machine is a network of symmetrically connected, neuron-like units that make stochastic decisions about whether to be on or off. Boltzmann...
分类:
系统相关 时间:
2015-04-20 20:40:44
阅读次数:
301
Regular expressions一.关键概念1.The result of applying a regular expression to a string is one of the following: To find out whether the string matches the...
题目:Determine whether an integer is a palindrome. Do this without extra space.
翻译:判断一个数字是否是回文数,不要额外空间。
解题思路:因为数字既然传过去了,就不会有越界的问题。每次只需要取最前面和最后面的那一位数字进行比较,相同则继续,不同则返回、
首先要获取数字的位数,假设数字是12344321,一共有8位。
...
分类:
其他好文 时间:
2015-04-20 17:09:41
阅读次数:
132
1 public static class ArrayListHelper 2 { 3 /// 4 /// determine whether the array list contain the sepcific string 5 //...
分类:
其他好文 时间:
2015-04-20 16:27:50
阅读次数:
81
problem:
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 ...
分类:
其他好文 时间:
2015-04-20 11:16:24
阅读次数:
209