Re: [問題] 100台聯大系統堆疊問題
: 最上面的元素不就是 1
: : a.4 b.3 c.2 d.1 e.None of the above
: : 我認為答案的關鍵在top element of Stack
: : 另一題也是台聯100
: : 25.A stack is initially empty, then the following commands are performed:
: : push 5
5(頂)
: : push 7
7(頂)
5
: : pop
pop是把最上的丟掉 所以丟掉7 故變成
5(頂)
: : push 10
10(頂)
5
: : push 5
5-----新加入的五(頂端)
10
5
: : pop
pop是把最上的丟掉 所以丟掉5 故變成
10(頂)
5
: : Which of the following is correct stack after those commands(assume the top
: : of the stack is on the left)?
--
→ Allen524:牛隊先發投手局數吃不長..但是牛隊RP就是比別隊多,牛隊SP 05/21 10:35
→
05/21 10:36,
05/21 10:36
→ Allen524:後援..長期下來就是會有好結果..牛隊就是投手多阿.. 05/21 10:37
推
05/21 10:51,
05/21 10:51
→
05/21 10:52,
05/21 10:52
→
05/21 10:53,
05/21 10:53
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.26.62.217
推
06/16 20:00, , 1F
06/16 20:00, 1F
→
06/16 20:01, , 2F
06/16 20:01, 2F
→
06/17 13:28, , 3F
06/17 13:28, 3F
→
06/27 23:04, , 4F
06/27 23:04, 4F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):