946. Validate Stack Sequences

class Solution {
    public boolean validateStackSequences(int[] pushed, int[] popped) {
        Stackst=new Stack<>();
        for(int i=0,j=0;i

你可能感兴趣的:(946. Validate Stack Sequences)