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 longes...
分类:
其他好文 时间:
2014-05-16 21:15:37
阅读次数:
454
tr
(traslate的缩写)可以用来删除一段信息当中的文字,或者是进行文字信息的替换![root@www ~]# tr [-ds] SET1
...选项与参数:-d :删除信息当中的 SET1 这个字符串;-s :取代掉重复的字符!范例一:将 last 输出的信息中,所有的小写变成大写字...
分类:
系统相关 时间:
2014-05-16 19:36:05
阅读次数:
361
HTTP Caching 用好了,可以极大的减小服务器负载和减少网络带宽。十分有必要深入了解下
http 的 caching 协议。先来看下请求/响应过程:http 请求/响应1、用 Last-Modified 头在第一次请求的响应头返回
Last-Modified 内容,时间格式如:Wed, 22...
分类:
Web程序 时间:
2014-05-16 09:22:42
阅读次数:
351
一.测试数组长度是使用arr.length;(注:使用delete不会修改数组的length属性)二.数组方法 1.join
Array.join()方法将数组所有元素都转化为字符串连接在一起,返回生成的字符串。 var arr=[1,2,3];
//创建一个包含三个元素的数组ar...
分类:
编程语言 时间:
2014-05-16 09:08:28
阅读次数:
350
设置快捷键
让word轻松实现无格式粘贴使用word时,我们经常会遇到需要将网页上的内容复制到word进行编辑的情况,但是通常这样复制进来的内容都是带有格式的,编辑起来非常不便。虽然我们可以利用“记事本”来消除格式,也可以在word中,通过执行“编辑”→“选择性粘贴”的方式选择无文本粘贴,但是这些还...
分类:
其他好文 时间:
2014-05-16 06:39:31
阅读次数:
284
题目: Given an input string, reverse the string word
by word. For example, Given s = "the sky is blue", return "blue is sky
the".解题思路: 1、先对字符串进行一次总...
分类:
其他好文 时间:
2014-05-16 05:44:30
阅读次数:
263
注意是>=//#define
LOCAL#include#include#include#include#includeusing namespace std;int
T,maxx;std::map word_count;std::map::iterator be,ed,result;string ...
分类:
其他好文 时间:
2014-05-16 05:20:32
阅读次数:
294
//基本类型for(int i=0;i<d.length;i++){for(int
j=i+1;j<d.length;j++){if(d[i]<d[j]){double
temp=d[i];d[i]=d[j];d[j]=temp;基本类型排序,需要注意2点,1,排序过程中,需要引用中间值,类似2个瓶...
分类:
其他好文 时间:
2014-05-15 16:52:11
阅读次数:
265
Jordan Brand has been going out of theAir
Jordan 6 World Cup Brazilordinary with some of their Retro colorways over the
last few years and the trend c...
分类:
其他好文 时间:
2014-05-15 16:47:00
阅读次数:
288
perseverance n坚持不懈 耐性carefree adj 无忧无虑的
不负责任的interaction n互动 交流confidence n信心 密码 adj 诈骗的nomination n提名任命
分类:
其他好文 时间:
2014-05-14 08:49:14
阅读次数:
223