栈的压入、弹出序列
class Solution {
public:
//拿入栈顺序去模拟出栈顺序,如果可以模拟出来,就是ok的,如果不能就不行。
bool IsPopOrder(vector<int> pushV,vector<int> popV) {
stack<int> s;
int i=0,j=0;//push序列的下标和pop序列的下标
while(i<pushV.size())
{
s.push(pushV[i]);//不管什么情况都如数据,之后将push序列下标+