/*
y总搬运工
*/
class Solution {
public:
bool isPopOrder(vector[HTML_REMOVED] pushV,vector[HTML_REMOVED] popV) {
if(pushV.size()!=popV.size()) return false;
stack<int> stk;
int i=0;
for(auto x:pushV){
stk.push(x);
while(stk.size()&&stk.top()==popV[i]){
stk.pop();
i++;
}
}
return stk.empty();
}
};