【题目】
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 ...
有三种方法能够确定浏览器窗口的尺寸(浏览器的视口,不包括工具栏和滚动条
)。
对于Internet Explorer、Chrome、Firefox、Opera 以及 Safari:
window.innerHeight - 浏览器窗口的内部高度
window.innerWidth - 浏览器窗口的内部宽度
对于 Internet Explorer 8、7、...
分类:
Web程序 时间:
2014-06-05 09:55:20
阅读次数:
255
一、基本语法:window.open(pageURL,name,parameters)其中:pageURL 为子窗口路径name 为子窗口名字parameters 为窗口参数(各参数用逗号分隔)二、示例
window.open('page.html','newwindow','height=500,width=800,top=0,left=0,
toolbar=no,menuba...
大家都知道php 的核心函数 sendmail 可以发送邮件,我在ubuntu 下测试可以实现,但在window 2003 无法发送邮件,非常郁闷,只好换了一种方法,借用php 的socket 功能可以发送邮件。
首先我们需要导入以下几个类:
phpmailer.class.php
<?php
/**
* 课程预约课程报名
*/
header ( "Conten...
分类:
Web程序 时间:
2014-06-05 00:39:23
阅读次数:
2073
以前写 JavaScript 脚本时,事件都是采用object.event =
handler;的方式初始化。这种方式对于 Internet Explorer、Mozilla/Firefox 和 Opera
来说很通用。但是有一个问题就是,这种方式只能一个事件对应一个事件处理过程。如果希望一个事件可...
分类:
Windows程序 时间:
2014-05-31 14:17:23
阅读次数:
1659
因为工作需要,昨天安装了TortoiseSVN
64位版,没有马上重启。随后,IIS中打开页面后浏览器一片空白,没有网页,没有地址,什么都没有。这时还没想到可能是TortoiseSVN的问题。后来实在是不知道什么原因,就想重启试试。重启后,进入桌面3秒钟左右,就蓝屏,报计算机发生了问题,需要重启。然...
简单的通用事件方法var EventUtil = { getEvent: function (e) {
return e || window.event; }, getTarget: function (e) { return e.target || e...
分类:
编程语言 时间:
2014-05-31 04:21:07
阅读次数:
294
1, 首先打开注册表,然后打开下面路径:HKEY_CLASSES_ROOT\*\Shell2,
右键新建项(也就是右键的文字): 用vim编辑3, 在“用vim编辑”下面再添加项 : command4,
点击新建的“commond”,看到右边窗口有默认,然后右击“修改”,修改为gvim.exe的位置...