Arrays in JavaScript can work both as a queue and as a stack. ... The input is an array of numbers, e.g. arr = [1, -2, 3, 4, -9, 6] .
確定! 回上一頁