题目: Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?1...
分类:
编程语言 时间:
2014-07-30 05:34:43
阅读次数:
319
publicclassDBCon{
//数据库驱动对象
publicstaticfinalStringDRIVER="oracle.jdbc.driver.OracleDriver";
//数据库连接地址(数据库名)
publicstaticfinalStringURL="jdbc:oracle:thin:@localhost:1521:orcl";
//登陆名
publicstaticfinalStringUSER="scott";
//登陆密..
分类:
数据库 时间:
2014-07-30 03:28:04
阅读次数:
314
"could not create the java virtual machine"打开到eclipse安装文件夹下的eclipse.ini文件,内容如下:-vmargs-Xms512M-Xmx1024M-XX:PermSize=64M-XX:MaxPermSize=128M 暂时不知道什么意思,...
分类:
系统相关 时间:
2014-07-29 21:24:12
阅读次数:
252
find . -name "*.c" | xargs grep -H "hello"在当期目录下查找含有hello且后缀名为.c的文件ps ax | grep "sleep"当前正在运行的进程中是否含有sleep这个进程!!上次执行的命令cd -跳回上次进入的目录ssh jack@123.123.1...
分类:
系统相关 时间:
2014-07-29 20:56:32
阅读次数:
317
WARN hdfs.DFSClient: DataStreamer Exception: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /input/LICENSE.txt could only be replicated to 0 nodes, instead of 1
at org.apache...
分类:
其他好文 时间:
2014-07-29 18:13:22
阅读次数:
227
/*
find your present (2)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/1024 K (Java/Others)
Total Submission(s): 15255 Accepted Submission(s): 5780
Problem Description
In the...
分类:
其他好文 时间:
2014-07-29 18:10:02
阅读次数:
292
HDU 1796 How many integers can you find(组合数学-容斥原理)
题目大意:
给你1个数n,再给m个数,问你1~n-1里面有多少个数能被这m个数的任意一个数整除。
解题思路:
利用容斥原理就可以解决。...
分类:
其他好文 时间:
2014-07-29 17:54:42
阅读次数:
197
按照文档:http://www.micmiu.com/bigdata/hadoop/hadoop2x-eclipse-mapreduce-demo/安装配置好Eclipse后,运行WordCount程序报错: log4j:WARN No appenders could be found for lo...
根据这个方案我们进行如下配置: 注:红色字体是需要注意的内容 <Resource name="jdbc/pageFrame" ? auth="Container" ? type="javax.sql.DataSource" ? driverClassName="com.mysql.jdbc.Driver" ? url="jdb...
分类:
数据库 时间:
2014-07-29 16:18:59
阅读次数:
229
前几天的安装的Oracle测试环境,今天发现不能使用本地IP连接,连接提示错误 “Oracle the network adapter could not establish the connection” 这个问题折腾我时间比较长,网上很多资料都不太适合我的情况。不...
分类:
数据库 时间:
2014-07-29 16:09:39
阅读次数:
275