题目链接题意: find the maximum positive difference
between the price on the ith day and the jth day附上代码: 1 class Solution { 2
public: 3 int maxProfit(ve...
分类:
其他好文 时间:
2014-05-28 03:49:45
阅读次数:
307
1 #!/bin/bash 2 #查询 3 echo -e 4 for i in `cat
id.txt` 5 do 6 A=`mysql -h10 -uw -p2012 -Ne "select Id,Name,User_Logindate from
info where Id=$i"`...
分类:
数据库 时间:
2014-05-27 18:08:04
阅读次数:
341
#!/bin/bash# Program to output a go source file
with user informationCURRENT_TIME=$(date +"%x %r %Z")cat <<
EOF/* Author:$USER CreatedAt:$CURRENT_TIME...
分类:
其他好文 时间:
2014-05-27 17:49:29
阅读次数:
283
You could use:Calendar c
=Calendar.getInstance();int seconds = c.get(Calendar.SECOND);There are plenty of
constants in Calendar for everything you nee...
分类:
移动开发 时间:
2014-05-27 17:13:56
阅读次数:
512
sing the emulators (adb shell sqlite3
--version):SQLite 3.7.11:19-4.4-KitKat18-4.3-Jelly Bean17-4.2-Jelly
Bean16-4.1-Jelly BeanSQLite 3.7.4:15-4.0.3-I...
分类:
移动开发 时间:
2014-05-27 16:06:58
阅读次数:
389
转http://blog.csdn.net/hitlion2008/article/details/9285785重要说明这不是给编程新手准备的教程,如果您入行编程不久,或者还没有使用过1到2门编程语言,请移步!这是有一定编程经验的人准备的.最好是熟知Java或C,懂得命令行,Shell等.总之,这...
分类:
编程语言 时间:
2014-05-26 19:41:10
阅读次数:
376
#!/bin/bash# 用shell中的数组构造统计不同的组合个数.#
下面的组合有(1,6)(3,4)(5,5)(1,6)(5,5)(4,3)(1,8)#
不同的组合为(1,6)(3,4)(5,5)(4,3)(1,8)arrayLeft=(1 3 5 1 5 4 1)arrayRight=(6 ...
分类:
其他好文 时间:
2014-05-26 19:17:19
阅读次数:
409
运维的同学和Team里面的一个同学分别遇到过Nginx在线上环境使用中会遇到TIME_WAIT过高或者CLOSE_WAIT过高的状态先从原因分析一下为什么,问题就迎刃而解了。首先是TIME_WAIT:
理解一下TIME_WAIT状态产生的原因,这个问题已经被很多很多的书说烂了,但是为什么很多人还是....
分类:
其他好文 时间:
2014-05-26 18:28:19
阅读次数:
388
We are the World词曲:Michael Jackson & Lionel
RichThere comes a time when we heed a certain call (Lionel Richie 莱昂纳尔.里奇)When
the world must come togethe...
分类:
其他好文 时间:
2014-05-26 17:07:17
阅读次数:
266
一次nginx 504 Gateway
Time-out错误排查、解决记录,经过反复检查,发现造成这个问题的原因就是PHP的CURL没有设置超时时间,解决办法只要设置超时时间或者修改一下nginx的配置即可解决。记一次莫名其妙的网站失去响应排查。之前网站一直是使用nginx做代理后端的apache运...
分类:
其他好文 时间:
2014-05-26 16:45:50
阅读次数:
276