今天CSDN博客发生异常,折腾了大半天终于发出了这篇博文。
【题目】
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 only no...
分类:
其他好文 时间:
2014-12-03 17:14:52
阅读次数:
219
Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such possibl...
分类:
其他好文 时间:
2014-12-03 13:49:18
阅读次数:
163
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 the problem stat...
分类:
其他好文 时间:
2014-12-03 12:20:43
阅读次数:
132
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-12-03 12:14:39
阅读次数:
169
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2014-12-02 22:12:13
阅读次数:
163
E/AndroidRuntime( 1601): FATAL EXCEPTION: main
E/AndroidRuntime( 1601): Process: com.android.camera2, PID: 1601
E/AndroidRuntime( 1601): android.content.res.Resources$NotFoundException: File res/dra...
分类:
其他好文 时间:
2014-12-02 15:19:38
阅读次数:
452
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:
其他好文 时间:
2014-12-02 15:05:17
阅读次数:
182
一、原题
Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer...
分类:
其他好文 时间:
2014-11-29 11:55:26
阅读次数:
204
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c...
分类:
其他好文 时间:
2014-11-29 11:38:05
阅读次数:
124
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with...
分类:
其他好文 时间:
2014-11-29 08:53:32
阅读次数:
168