(一)增量构造法
#include
#include
using namespace std;
const int MAXN = 1000;
int A[MAXN], n;
void print_subset(int n, int *A, int cur) {
for(int i = 0; i < cur; ++i) cout << A[i] << " ";
cout << endl...
分类:
其他好文 时间:
2014-07-04 08:06:43
阅读次数:
224
Subsets:Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set mus...
分类:
其他好文 时间:
2014-06-29 00:03:40
阅读次数:
272