[理工] [資結]-高應大97-資工所
(5)
Given an empty stack A, what is the final state of A after executing the
following stack operations ?
Push(A, 20)
Push(A, 40)
Pop(A)
Push(A, 20)
Push(A, 60)
Pop(A)
Pop(A)
想問看看有沒有人有寫過 ~
最後答案是 20 嘛? 感謝囉 ~
題目網址 http://tinyurl.com/yfqcq8v
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.173.57.105
※ 編輯: CoMix 來自: 218.173.57.105 (04/07 09:04)
※ 編輯: CoMix 來自: 218.173.57.105 (04/07 09:05)
→
04/07 10:01, , 1F
04/07 10:01, 1F
推
04/07 11:22, , 2F
04/07 11:22, 2F