作者hatvito (跳~跳~跳)
看板TransCSI
標題Re: [問題] 100台聯大系統堆疊問題
時間Sat Jun 16 18:35:24 2012
: 最上面的元素不就是 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
→ Allen524:就是不需要場場120球起跳..也不用本週先發.下週中繼.後周05/21 10:36
→ Allen524:後援..長期下來就是會有好結果..牛隊就是投手多阿.. 05/21 10:37
推 Allen524:現在SP已經固定了吧...其實以牛隊的陣容來講.SP只要吃6局05/21 10:51
→ Allen524:就可以下班了..像林拔這種有點傷的90球以內就退場也行,牛05/21 10:52
→ Allen524:隊的RP質量都很好..根本無需要球SP頭長局數.球數到就可以05/21 10:53
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.26.62.217
推 lkjh775533:照h大這樣解 最終答案是10(頂)5 那答案為何選b.5 10?而 06/16 20:00
→ lkjh775533:不是d.10 5呢? ps:top of stack is on the left! 06/16 20:01
→ stator:10、5 06/17 13:28
→ keepole:我也覺得是DD耶@@" 06/27 23:04