Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]...
分类:
其他好文 时间:
2014-06-18 11:41:52
阅读次数:
156
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
题目
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()...
分类:
其他好文 时间:
2014-06-17 22:59:06
阅读次数:
223
Behavioral things
are the dynamic parts of UML models. These are the verbs of a model, representing behavior over time and space. In all, there are three primary kinds of behavioral things.
行...
分类:
其他好文 时间:
2014-06-17 21:47:37
阅读次数:
315
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
Bash
开头#!/bin/bash。echo
语句屏蔽
“
”
若使用则 \” \”
。
即使文件没有执行权限,仍然可以通过bashhello.sh
或者 sh hello.sh来执行文件。
标准输出写入>>文件中,标准错误输出默认为屏幕。标准错误输出为2>>。错误和输出都写入文件:1>>log
2>>err。两者都写入同一个文件:>&all_result,>
...
分类:
系统相关 时间:
2014-06-17 16:29:35
阅读次数:
359