【题目】
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum window is "BANC".
Note:
If there is no such window in S that covers ...
分类:
其他好文 时间:
2014-06-05 11:14:26
阅读次数:
255
【题目】
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum window is "BANC".
Note:
If there is no such window in S that covers ...
Linux打包命令tar -zcvf /home/xahot.tar.gz /xahottar
-zcvf 打包后生成的文件名全路径 要打包的目录例子:把/xahot文件夹打包后生成一个/home/xahot.tar.gz的文件。# tar -xf
all.tar这条命令是解出all.tar包中所有...
分类:
系统相关 时间:
2014-05-31 15:50:58
阅读次数:
439
1、添加菜单资源在resourceview视图中右击选择insert,添加一个菜单资源IDR_MENU1,同时设定好响应的菜单项,例如:菜单1菜单2子菜单1(ID_MENUITEM1)子菜单3(ID_MENUITEM3)子菜单2(ID_MENUITEM2)子菜单4(ID_MENUITEM4)2、在对...
分类:
编程语言 时间:
2014-05-31 15:29:27
阅读次数:
669
vi /etc/sysconfig/i18n
LANG="en_US.UTF-8"SUPPORTED="en_US.UTF-8:en_US:en"SYSFONT="latarcyrheb-sun16"source
/etc/sysconfig/i18n以及export LC_ALL=zh_CN.UT...
分类:
其他好文 时间:
2014-05-31 14:02:03
阅读次数:
266
不要写insert语句,因为数据库字段太多了,有什么简单点的效率高的方法吗public
void MultiInsertData(DataSet ds){ string connt = "Oracle的连接字符串"; string sql =
"select id,name,… from tab.....
分类:
数据库 时间:
2014-05-31 13:05:04
阅读次数:
325
看似简单的一个菜单,确需要不少的知识点1.
getByClassgetElementsByClassName
已经有大部分现代浏览器支持了,只有ie6,ie7,ie8是不支持的。所以对ie6,7,8做特别的处理就行,而ie里边有个内置的属性一直被我们所忽略,document.all,这个比一般的do...
分类:
Web程序 时间:
2014-05-31 08:20:41
阅读次数:
340
今天在做一个大业务的数据删除时,看到下面的性能曲线图在删除动作开始之后,insert
buffer 大小增加到140。对于这些状态参数的说明InnoDB Insert
Buffer插入缓冲,并不是缓存的一部分,而是物理页,对于非聚集索引的插入或更新操作,不是每一次直接插入索引页.而是先判断插入的非聚...
分类:
数据库 时间:
2014-05-31 06:10:13
阅读次数:
428
DescriptionLet us consider sets of positive
integers less than or equal ton. Note that all elements of a set are different.
Also note that the order o...
分类:
其他好文 时间:
2014-05-31 05:12:49
阅读次数:
246
PDO::query() 主要是用于有记录结果返回的操作,特别是SELECT操作PDO::exec()
主要是针对没有结果集合返回的操作,如INSERT、UPDATE等操作PDO::prepare()
主要是预处理操作,需要通过$rs->execute()来执行预处理里面的SQL语句,这个方法可以绑...
分类:
其他好文 时间:
2014-05-31 02:30:56
阅读次数:
329