Valid Pattern LockTime Limit:2 Seconds Memory Limit:65536 KBPattern lock security is generally used in Android handsets instead of a password. The pat...
分类:
其他好文 时间:
2015-04-12 19:16:14
阅读次数:
305
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-04-12 17:30:50
阅读次数:
99
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:
其他好文 时间:
2015-04-11 01:18:51
阅读次数:
113
今天安装SQL Server时遇到一个恶心的Bug。------------------------------------------------------------------------------------------------安装环境:Windows Server 2008 R2 ...
分类:
数据库 时间:
2015-04-10 21:41:53
阅读次数:
281
【题目】
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to ...
分类:
其他好文 时间:
2015-04-10 18:09:25
阅读次数:
117
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...
分类:
其他好文 时间:
2015-04-09 23:54:16
阅读次数:
304
1-1:程序块要采用缩进风格编写,缩进的空格数为4个。说明:对于由开发工具自动生成的代码可以有不一致。1-2:相对独立的程序块之间、变量说明之后必须加空行。示例:如下例子不符合规范。if (!valid_ni(ni)){... // program code}repssn_ind = ssn_dat...
分类:
其他好文 时间:
2015-04-09 23:33:54
阅读次数:
262
示例代码:angular.module("myTest",[])
.directive(‘multipleIdentityNo‘,[function(){
return{
require:"ngModel",
link:function(scope,element,attr,ngModel){
if(ngModel){
varemailsRegexp=/^/d{17}[X0-9]{1}$/;//校验身-份-s-证号码
}
varcustomValidator=function(value..
分类:
其他好文 时间:
2015-04-09 17:45:18
阅读次数:
196
export `=' not a valid identifier的一般原因
原因就是你修改的 /etc/profile 文件里
你加过空格
我的代码如下:
export JAVA_HOME = /usr/java/jdk1.7.0_75
export PATH = $JAVA_HOME/bin:$PATH
export CLASSPATH = .:$JAVA_HO...
分类:
系统相关 时间:
2015-04-09 15:36:35
阅读次数:
3711
题目:Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given"25525511135",return["25...
分类:
其他好文 时间:
2015-04-09 13:30:30
阅读次数:
169