yuleee
yuleee
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
yuleee的博客
全部文章
(共1篇)
栈的压入顺序
思路1.先遍历压栈,遇到可弹出的先弹出2.遍历完成后,全部弹出3.未能完全弹出,则错误完全弹出,则正确 class Solution { public: bool IsPopOrder(vector<int> pushV,vector<int> popV) { ...
2019-09-15
0
533