摘要:
通过swap方式生成的全排列并不是字典顺序的: #include#include#include#include#includeusing namespace std;int A[20];int cnt;int recur;void perm(int cur, int n, int *A){ recur++; if(cur==n)//empty { ... 阅读全文
posted @ 2014-04-19 14:22
katago
阅读(198)
评论(0)
推荐(0)

浙公网安备 33010602011771号