摘要: ```cpp 输出1到n的全排列 (字典序) 伪代码: void print_per(序列A, 集合S){ if(S为空){ 输出序列A }else{ 按照从小到大的顺序考虑S中的每个元素V print_per(在A的末尾添加V得到的新序列, S {V}); } } void print_per(i 阅读全文
posted @ 2016-09-13 12:42 阿文的博客 阅读(1356) 评论(0) 推荐(0) 编辑