随笔分类 -  算法

摘要:题目描述 数如一个数 n, 输出 1~n 的全排列。 如输入 3 输出: 1 2 3 1 3 2 2 1 3 2 3 1 3 1 2 3 2 1 题解 基本框架: // DFS/01-1 #include <iostream> using namespace std; int n; int aNum 阅读全文
posted @ 2021-02-28 12:17 TDesertGFI 阅读(87) 评论(0) 推荐(0)