js 判斷出棧是否有效

let inStack = [1,2,3]; let outStack = [3,1,2]; let left =0; let result = []; for(let i=0;i<inStack.length;i++){ result.push(inStack[i]) while(result.length!==0&&(result[result.length-1]==outS
相關文章
相關標籤/搜索