题目
Write a function to find the longest common prefix string amongst an array of strings.
方法
从第一个字符开始,判断是否相同。
public String longestCommonPrefix(String[] strs) {
if (strs ...
分类:
其他好文 时间:
2014-06-18 11:18:30
阅读次数:
205
题目
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()...
分类:
其他好文 时间:
2014-06-17 22:59:06
阅读次数:
223
??
var d=new Date();
document.write("从 1991/02/02 至今已过去 " + d.getTime() + " 毫秒");
从 1991/02/02 至今已过去 1402917686044 毫秒...
分类:
其他好文 时间:
2014-06-17 22:46:57
阅读次数:
235
首先必须要了解客户端跳转和服务器端跳转的区别:
客户端跳转: response.sendRedict(String path),地址栏发生改变。不能传递request属性。
服务器端跳转: 地址栏不发生改变。能传递request属性。
request属性范围: 只有在服务器端跳转以后,所有设置的内容才会停留下来。
session属性范围: 不管是客户端跳转还是服务器端跳转,只要是是属性设...
分类:
编程语言 时间:
2014-06-17 22:27:29
阅读次数:
331
“WARN Please initialize the log4j system properly“的解决办法...
分类:
其他好文 时间:
2014-06-17 22:18:27
阅读次数:
375
android.permission.ACCESS_CHECKIN_PROPERTIES 允许读写访问"properties"表在checkin数据库中,改值可以修改上传( Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded)
...
分类:
移动开发 时间:
2014-06-17 21:58:57
阅读次数:
437
linux命令无效-bash:ls:commandnotfound一次重启后开机,基本所有的命令都不可用,只有少数的命令可用[root@centos-1~]#ll-bash:ls:commandnotfound[root@centos-1~]#pwd/root[root@centos-1~]#shutdown-rnow-bash:shutdown:commandnotfound[root@centos-1~]#export$PATH-bash:..
分类:
系统相关 时间:
2014-06-17 17:45:16
阅读次数:
368
今天第一天开始学JAVA,时间:2014年6月17日
学习内容:1.java环境的架设
2.JAVA基本数据类型
1.JAVA环境的架设
1.要先去下载JDK,下载地址
2.安装完成后,设置环境变量
1.1环境变量的设置
1.右键-我的电脑-属性-高级-环境变量-系统变量,找到PATH,在里面..
分类:
编程语言 时间:
2014-06-17 17:19:17
阅读次数:
277
4.4 使用递归算法计算阶乘
function calc(n){
if(n>0) return(calc(n-1)*n);
return(1);
}
document.write("正整数8的阶乘是"+calc(8));
document.write("正整数16的阶乘是"+calc(16));...
分类:
编程语言 时间:
2014-06-17 16:14:39
阅读次数:
301
/*分为四步 *//*第1步:创建临时表空间 */create temporary tablespace yuhang_temp tempfile 'D:\oracledata\yuhang_temp.dbf' size 50m autoextend on next 50m maxsize ...
分类:
数据库 时间:
2014-06-17 14:55:03
阅读次数:
316