2018年8月28日

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 妄想症T 阅读(3383) 评论(0) 推荐(0) 编辑

导航