《Unix编程艺术》读书笔记(1)这两天开始阅读该书,下面是自己的体会,以及原文的摘录,虽然有些东西还无法完全吃透。写优雅的代码来提高软件系统的透明性:(P134)
Elegance is a combination of power and simplicity. Elegant code does much with little. Elegant code is not only corr...
分类:
其他好文 时间:
2015-06-06 18:15:19
阅读次数:
106
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:
其他好文 时间:
2015-06-05 08:44:53
阅读次数:
125
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2015-06-05 07:38:18
阅读次数:
137
1、求给定数组的组合
如array('a', 'b', 'c')
结果为
a
b
c
a b
a c
b c
function combination($arr){
if(empty($arr)){
return false;
}
$count = count($arr);
for($i=1; $i<$count; $i++){
...
分类:
编程语言 时间:
2015-06-01 16:40:40
阅读次数:
96
public List> combinationSum3(int k, int n) { List> res = new ArrayList>(); List item = new ArrayList(); int sum[] = {0}; ...
分类:
其他好文 时间:
2015-05-30 09:19:03
阅读次数:
124
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:
其他好文 时间:
2015-05-29 17:28:45
阅读次数:
92
Find all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combination should be a u...
分类:
其他好文 时间:
2015-05-29 17:25:09
阅读次数:
112
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2015-05-29 15:39:37
阅读次数:
121
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
其他好文 时间:
2015-05-29 11:49:26
阅读次数:
82
leetcode 216: Combination Sum III
java python c++...
分类:
其他好文 时间:
2015-05-29 09:56:08
阅读次数:
141