-- SQL Server 2000SELECT a.name AS 字段名, CASE WHEN EXISTS (SELECT 1 FROM sysobjects WHERE xtype = 'PK' AND parent_obj = a.id AND name IN (SELECT name F...
分类:
数据库 时间:
2014-07-16 23:16:46
阅读次数:
294
Word Break IIGiven 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.Retur...
分类:
其他好文 时间:
2014-06-28 09:45:34
阅读次数:
223
之前自定义了一个AlertDialog对话框,第一次点击时正常,但第二次调用时会出现错误:java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
关于这个错误纠结了我...
分类:
移动开发 时间:
2014-06-28 07:28:39
阅读次数:
278
经常使用cd命令切换目录,虽有cd-,历史目录poppush等操作,终究不直观。直接上代码及部署:
i=1
HERE=`pwd`
VALID_HERE=${HERE//\//\\\/}
ALREADY_EXIST=`grep^${HERE}$$1`
declare-agodirs
whiletrue;do
[[$2="a"]]&&[[x${ALREADY_EXIST}="x"]]&&sed-i"/^EOF/..
分类:
系统相关 时间:
2014-06-28 06:50:25
阅读次数:
338
问题描述:thetomcatinstallationdirectoryisnotvalid原因:我在上一页没有选择apachetomcat7.0,因为eclipse版本太低,只有到6.0的server供选择所以这边就算把Name改成7.0,还是配置不了解决方案:安装更高版本的eclipse
分类:
其他好文 时间:
2014-06-28 06:30:26
阅读次数:
575
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-06-27 23:13:24
阅读次数:
218
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 no...
分类:
其他好文 时间:
2014-06-27 10:36:41
阅读次数:
183
题目
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 the character '.'.
A par...
分类:
其他好文 时间:
2014-06-27 09:38:48
阅读次数:
189
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 = "...
分类:
其他好文 时间:
2014-06-27 09:23:00
阅读次数:
220
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 nodes with keys less than the node's key....
分类:
其他好文 时间:
2014-06-27 09:15:12
阅读次数:
196