这道题在前两个的基础上做稍微改进就可以。下面是AC代码: 1 /** 2 * Design an
algorithm to find the maximum profit. You may complete at most two transactions.
3 * @pa...
分类:
其他好文 时间:
2014-07-22 23:01:13
阅读次数:
251
主要区别:client模式启动快,运行速度慢(启动快可能是由于数据共享),HotSpot
VM的client模式实现了数据共享。Server 模式
启动慢,执行速度快。默认情况下,启动时JVM会通过检测主机是否为服务器来判定使用client模式还是server模式。client模式适用于GUI的开发...
分类:
其他好文 时间:
2014-07-22 23:00:54
阅读次数:
325
有关批处理脚本中,copy命令与xcopy命令在用法上的一些区别。原文地址:http://www.jbxue.com/article/14536.htmlCopy与Xcopy的区别一,copy不能在有子目录存在的文件中拷贝文件的同时重命名此文件名说明,这里C:为根目录,bat为子目录),而xcopy...
分类:
其他好文 时间:
2014-07-22 23:00:54
阅读次数:
293
Requirement-Driven Linux Shell
ProgrammingRequirement-Driven Linux Shell ProgrammingTable of Contents1. Where
can I find the basic Material about Linu...
分类:
系统相关 时间:
2014-05-01 20:40:05
阅读次数:
678
题目: Given a string S, find the longest palindromic
substring in S. You may assume that the maximum length of S is 1000, and there
exists one unique lo...
分类:
其他好文 时间:
2014-05-01 20:07:13
阅读次数:
429
妈咪,我找到了! -- 15个实用的Linux
find命令示例http://www.oschina.net/translate/15-practical-linux-find-command-examples?p=2#comments爹地,我找到了!
-- 15个极好的Linux find命令示例...
分类:
系统相关 时间:
2014-05-01 19:41:30
阅读次数:
429
iframe中的各种跳转方法(转)一、背景A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是A的iframe,在D中跳转页面的写法区别如下。二、JS跳转window.location.href、location.href本页面跳转,D页面跳转parent.location.h...
分类:
其他好文 时间:
2014-05-01 19:26:02
阅读次数:
356
Servlet是运行在Web服务器端的java应用程序,它用java语言编写,具有java语言的优点。与普通的java程序区别是,servlet对象具有对http请求处理的功能,并且其运行需要web容器的支持。Servlet常用API(更多方法及声明请查阅java
ee API)servlet接口p...
分类:
其他好文 时间:
2014-05-01 18:58:59
阅读次数:
343
指针函数是指带指针的函数,即本质是一个函数。函数返回类型是某一类型的指针定义: 类型标识符
*函数名(参数表)eg: int *f(x,y);函数指针是指向函数的指针变量,即本质是一个指针变量。int (*f) (int x); /* 声明一个函数指针
*/ f=func; ...
分类:
其他好文 时间:
2014-05-01 18:51:17
阅读次数:
316
代理模式与装饰器模式的区别,主要大于,从使用者(客户端)的角度来看的://装饰器的客户public class Client{ public static
void main(String[] args){ //客户指定了装饰者需要装饰的是哪一个类 ...
分类:
其他好文 时间:
2014-05-01 18:47:25
阅读次数:
354