https://leetcode.com/problems/valid-parentheses/Valid ParenthesesGiven a string containing just the characters'(',')','{','}','['and']', determine if ...
分类:
编程语言 时间:
2015-05-17 18:29:30
阅读次数:
187
题目:Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains onl...
分类:
其他好文 时间:
2015-05-16 20:21:48
阅读次数:
91
https://leetcode.com/problems/longest-valid-parentheses/Longest Valid ParenthesesGiven a string containing just the characters'('and')', find the leng...
分类:
编程语言 时间:
2015-05-16 18:21:36
阅读次数:
289
https://leetcode.com/problems/valid-number/Valid NumberValidate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>fa...
分类:
编程语言 时间:
2015-05-16 17:46:09
阅读次数:
801
Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => trueNote: It is intended for t...
分类:
编程语言 时间:
2015-05-16 11:49:10
阅读次数:
152
这道题目还是挺复杂的,复杂的原因是题目并没有给出有效数字的定义,比如说 .1 ,2.1e10.2 ,2e3.2 和2.1e5 有效,但10.1.1非法而这些数字的判断又是很麻烦的...
分类:
其他好文 时间:
2015-05-16 10:34:17
阅读次数:
85
题目Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:
Given “25525511135”,return [“255.255.11.135”, “255.255.111.35”]. (Order does no...
分类:
其他好文 时间:
2015-05-16 00:14:24
阅读次数:
145
一、popup 弹出框 在onCreate中创建时异常Unable to add window -- token null is not valid; is your activity running?错误及其修改方法popup 弹出框是要依赖于一个父窗口或者父 View,这个错误的根本原因是说父窗...
分类:
移动开发 时间:
2015-05-15 01:10:30
阅读次数:
123
Let’s consider K-based numbers, containing exactly N digits. We define a number to be valid if its K-based notation doesn’t contain two successive zeros. For example:1010230 is a valid 7-digit number;...
分类:
其他好文 时间:
2015-05-14 22:10:44
阅读次数:
191
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a ...
分类:
其他好文 时间:
2015-05-14 22:10:26
阅读次数:
131