class Solution { public: bool IsPopOrder(vector<int> pushV, vector<int> popV) { int len = pushV.size(); stack<int> s; int j = 0;//表示进栈元素的个数 for (int i = 0; i < len; i++) { while (j < len && (s.empty() || s.top() != popV[i])) {...