Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:
其他好文 时间:
2014-06-18 11:15:22
阅读次数:
149
强制不换行 div{ white-space:nowrap; } 自动换行 div{ word-wrap: break-word; word-break: normal; } 强制英文单词断行 div{ word-break:break-all; } ========================...
分类:
Web程序 时间:
2014-06-18 10:47:41
阅读次数:
274
升级linux内核直接在一个有编译环境的设备上,编译升级内核很简单。make menuconfig或者拷贝现有系统的.config文件修改.config文件 CONFIG_DEBUG_INFO=n (避免编译产生文件过大)make oldconfigmake all -j4make modules_...
分类:
系统相关 时间:
2014-06-18 10:38:30
阅读次数:
287
leetcode中有好些题目是这一类型,即找出满足一定条件的字符串子串。有些只要返回一个结果,有些则要返回所有结果。这类题目大体有两个思路,一个是dfs,另一个则是直接遍历,记录遍历过程中的一些状态。此题采用后者,理解起来简单。 题目并没有说L中的字符串是否可以重复,因此认为是可能重复的。所以...
分类:
其他好文 时间:
2014-06-18 10:36:29
阅读次数:
192
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2014-06-18 09:33:28
阅读次数:
181
win7:删除1、C:\Users\All Users\FLEXnet\adobe_00080000_tsf.dataWinXP:(c:/DocumentsandSettings/AllUsers/ApplicationData/FLEXnet\adobe_00080000_tsf.data)2、C...
分类:
其他好文 时间:
2014-06-18 08:37:51
阅读次数:
194
题目链接 Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn...
分类:
其他好文 时间:
2014-06-17 23:45:10
阅读次数:
373
webqq获得好友列表的hash算法,大约每个月中旬会变动一次。知道怎么获得他就可以了。
js文件路径 http://web.qstatic.com/webqqpic/pubapps/0/50/eqq.all.js
加密算法为 P=function(b,i),有时候是 P=function(b,j)
直接打开这个文件后搜索P=function,有两个参数的就是。
把函数体拷贝下来后百度 js格式化工具,把内容放进去,格式化一下。...
分类:
Web程序 时间:
2014-06-17 19:05:37
阅读次数:
267
union的作用很简单用来合并两条sql的结果集
语法: SQL1 UNION SQL2
现有一张价格表
要求:求出价格低于2000和价格高于3000的商品,不能用or和not between……and
思路:我们可以先求出低于2000的商品得到结果集1
再求出高于3000的商品得到结果集2
再利用union合并结果集1和结果集2
什么时候才允许使用union?
...
分类:
数据库 时间:
2014-06-17 16:34:36
阅读次数:
268
Bash
开头#!/bin/bash。echo
语句屏蔽
“
”
若使用则 \” \”
。
即使文件没有执行权限,仍然可以通过bashhello.sh
或者 sh hello.sh来执行文件。
标准输出写入>>文件中,标准错误输出默认为屏幕。标准错误输出为2>>。错误和输出都写入文件:1>>log
2>>err。两者都写入同一个文件:>&all_result,>
...
分类:
系统相关 时间:
2014-06-17 16:29:35
阅读次数:
359