Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2015-06-05 21:00:56
阅读次数:
109
Valid Parentheses
题目:
Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.
The brackets must close in the correct order, “()”...
分类:
其他好文 时间:
2015-06-05 14:07:10
阅读次数:
117
此Demo有一个奇葩的bug
06-05 12:50:44.955: E/AndroidRuntime(16374): Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@41d0c028 is not valid; is you...
分类:
其他好文 时间:
2015-06-05 14:02:33
阅读次数:
134
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another ex...
分类:
编程语言 时间:
2015-06-05 11:34:10
阅读次数:
147
题目:Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such poss...
分类:
其他好文 时间:
2015-06-05 08:44:54
阅读次数:
115
private Bitmap get_ninepatch(int id,int x, int y, Context context){ // id is a resource id for a valid ninepatch Bitmap bitmap = BitmapFactory.d...
分类:
其他好文 时间:
2015-06-04 18:43:25
阅读次数:
124
【题目】Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: ...
分类:
其他好文 时间:
2015-06-04 17:02:05
阅读次数:
105
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such po...
分类:
编程语言 时间:
2015-06-04 13:34:09
阅读次数:
110
Given a string containing just the characters '(', ')',
'{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are all valid b...
分类:
其他好文 时间:
2015-06-03 10:02:51
阅读次数:
141
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.
Return all such possible sentences.
For example, given
s = "...
分类:
其他好文 时间:
2015-06-02 18:07:59
阅读次数:
88