C语言实现全排列和回溯法总结
摘要:一、递归实现全排列 1 #include"cstdio" 2 int A[50]; 3 void print_permutation(int n,int *A,int cur){ 4 if(cur==n){ 5 for(int i=0;i<n;i++) 6 printf("%d",A[i]); 7
阅读全文
posted @ 2018-08-28 16:36
posted @ 2018-08-28 16:36
posted @ 2018-08-16 19:12
posted @ 2018-08-16 16:31
posted @ 2018-08-13 12:24
posted @ 2018-08-10 09:41