首页 > TAG信息列表 > 全排

字符串全排

   字符串全排          对字符串进行全排,就是对去掉某一个字符的字符串进行去全排,全排之后再加上去掉的那个字符。以此类推,对n个长度的字符进行全排,就要对n-1个长度的字符串进行全排,对n-1个长度的字符进行全排,就要对n-2个长度的字符串进行全排、、、、、 并且对每个长度

大大的目录

map的应用 Rank List 大数 火星A+B bfs 与dfs N皇后问题 Catch That Cow 过河卒 全排类 全排列 next_permutation 动态规划 最少拦截系统 数字三角形 背包模板 最长递增子序列 和最大子序列 哈希表 最长回文串 并查集 畅通工程 感想: md,会的算法甄姬少。

递归求数组全排

#include<iostream> using namespace std; #include<string> int arry[10] = { 1,2,3,4,5,6,7,8,9,10 }; int hash_arry[10] = { 0 }; int mark_arry[10] = { 0 }; int c=0; int index = 0; void creat() { if (index >= 10) { c++; return; } for (in