摘要: 1 #include <string> 2 #include <cstdio> 3 #include <cstdlib> 4 #include <iostream> 5 #include <algorithm> 6 7 using namespace std; 8 9 // 使用DFS深度优先搜索生成全排列10 // 如果当前生成的排列满足条件(逻辑意义上的有序),返回true11 bool dfs(string &bunch, int bLen, string str) {12 if (bLen == str.length( 阅读全文
posted @ 2012-12-08 19:25 Maxwell:My Blog 阅读(1167) 评论(0) 推荐(0) 编辑