算法刷题11--合法出栈序列判断--poj-1363

题目: web 思路:svg 本身想没有想出来…3d 看图: 看图很容易理解,用了一个原顺序栈,顺序不对栈定不能pop净code 代码:xml #include <stack> #include <queue> #include <stdio.h> //序列存储到队列中 bool check_valid(std::queue<int> &order){ //存放1-n的栈s std::st
相关文章
相关标签/搜索