Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-10 00:24:49
阅读次数:
255
java
-Djava.library.path=/usr/local/lib/ruby/gems/1.8/gems/sharp_office-1.0.1/ext/sigar
-jar /usr/local/lib/ruby/gems/1.8/gems/sharp_office-1.0.1/ext/...
分类:
其他好文 时间:
2014-05-09 23:46:06
阅读次数:
265
There are two sorted arrays A and B of size m
and n respectively. Find the median of the two sorted arrays. The overall run
time complexity should be ...
分类:
其他好文 时间:
2014-05-09 23:26:18
阅读次数:
353
导入Excel:jsp中1 2 导入数据3 4 5 6
action中:action最前面肯定要有下面这几句,而且要有其对应的set、get方法private File tradingMoneyFile;//
实际上传文件pri...
分类:
Web程序 时间:
2014-05-09 23:25:13
阅读次数:
560
搭建hadoop集群的时候一定会用到的就是SSH免密码登录[hadoop@hadoop1 ~]$
ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to
save the key (/home/ha...
分类:
系统相关 时间:
2014-05-09 23:10:11
阅读次数:
471
将读取的数据写到log.txt文件中,先在工程下新建一个log.txt文件public
class Program { public const string LOGGER_FILE = "log.txt"; public static void
Logger(st...
分类:
Web程序 时间:
2014-05-09 23:03:52
阅读次数:
843
find / –name sqlplus iostat –d 2 iostat和iowait详细解说
如果你想对硬盘做一个IO负荷的压力测试可以用如下命令 time dd if=/dev/zero bs=1M count=2048 of=direct_2G
此命令为在当前目录下新建一个2G的文件 我...
分类:
系统相关 时间:
2014-05-09 20:31:22
阅读次数:
547
废话不多说,这是地址:http://android.lineten.net/layout.php。
有图有真相,例如:
你的XML假如是这样:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation=...
分类:
移动开发 时间:
2014-05-09 15:20:54
阅读次数:
424
问题起因项目需要跑在不同的平台上不希望代码中掺杂大量的define宏做平台判断(有洁癖呀~~~)定义一些通用宏来处理只能解决一些类型差异的问题处理将跨平台代码写入不同的文件夹下 os/linux 和 os/win在外部暴露的.h文件加入判断宏//file: public.h
#ifdef WIN32
#include "os/windows/public.h"
#else
#include "os...
分类:
其他好文 时间:
2014-05-09 14:46:23
阅读次数:
246
eval-buffer用来执行.emacs不要再重启了,或cxce执行光标前的一行eval-regionload-file
~/.emacsgoto-lineglobal-set-key定义快捷键或者ch+kC-down-mouse-1单击C-mouse-1双击
分类:
其他好文 时间:
2014-05-09 12:59:03
阅读次数:
221