- 博客(1)
- 收藏
- 关注
原创 回溯法输出所有出栈序列
//回溯法输出所有出栈序列 #include <bits/stdc++.h> using namespace std; int tot, res, sta, n; int r[2005], s[2005]; void recall(int m){ if(m == n + 1){//若所有元素都入过栈,输出当前出栈序列 tot++; cout << "Case #...
2019-01-08 09:56:59
1899
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人