val stack: MutableList<Int> = mutableListOf() // push stack.add(1) stack.add(2) // peek stack.last() // returns 2
確定! 回上一頁