这道题在前两个的基础上做稍微改进就可以。下面是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
在批处理脚本中,操作文件与文件夹的方法,包括文件的复制、删除、移动等操作,并附有xcopy命令的详细用法。原文地址:http://www.jbxue.com/article/14535.html批处理中的文件、文件夹操作,xcopy命令的用法。一,建bat文件自动执行复制,删除命令。例1:复制cd....
分类:
其他好文 时间:
2014-07-22 23:01:12
阅读次数:
372
有关批处理脚本中,copy命令与xcopy命令在用法上的一些区别。原文地址:http://www.jbxue.com/article/14536.htmlCopy与Xcopy的区别一,copy不能在有子目录存在的文件中拷贝文件的同时重命名此文件名说明,这里C:为根目录,bat为子目录),而xcopy...
分类:
其他好文 时间:
2014-07-22 23:00:54
阅读次数:
293
题目: 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
http://www.cnblogs.com/winnxm/archive/2010/01/22/1654502.html
[ KILL ]功能描述:用于向任何进程组或进程发送信号。1 #include 2 3 #include 4 5 int kill(pid_t pid, int
sig);6 ...
分类:
系统相关 时间:
2014-05-01 19:35:23
阅读次数:
645
stdio:包含标准输入输出的信息。printf这个函数的具体使用可以man一下得到printf:formted
output conversion 函数原型: note:这是一个不定参函数。 函数功能: stdin stdout s...
分类:
其他好文 时间:
2014-05-01 19:33:29
阅读次数:
315
将PDF转换成SWF可以使用SWFTools工具中的pdf2swf(http://www.swftools.org/),CSDN快速免积分下载地址XXX一个简单的将PDF文档转成SWF的用法:C:\SWFTools\pdf2swf example.pdf -o example.swf -f -T 91、首先下载安装,一直默认下一步即可。2、java代码import java.io.Buffered...
分类:
其他好文 时间:
2014-04-30 22:41:39
阅读次数:
504
在cmd窗口或者开始→运行中输入下面两个命令:
Regsvr32 C:\Program Files (x86)\Environment.dll
或
Regsvr32 C:\\Program Files (x86)\\Environment.dll
均提示下面的错误:
RegSvr32
[Content]
模块“C:\ProgramFiles(x86)\Environment.dll”...
分类:
其他好文 时间:
2014-04-30 22:38:38
阅读次数:
239
最近在网上搜索git revert 和git reset 的用法对比,实际操作的时候,发现根本行不通,自己摸索了下,记录下这篇文章。
git revert:回退某次提交,并重新提交,相当于代码恢复修改前,但是服务器上有两次提交log;
git reset:回退某次提交,同时回退修改log,但是修改内容回退到本地暂存区,由用户确定丢弃(checkout)或者重新提交。
假设当前有3个c...
分类:
其他好文 时间:
2014-04-30 22:34:39
阅读次数:
343