n+ top[]+=top[]
兩棧頂指針值相減的絕對值為(或兩棧頂指針相鄰)
()滿 ()空 ()n ()棧底 ()兩棧頂指針相鄰(即值之差的絕對值為)
鏈式存儲結構
S×SS×S××
data[++top]=x
*/*/++/+(注表達式中的點()表示將數隔開如是三個數)
假溢出時大量移動數據元素
(M+) MOD N (M+)% N
隊列
先進先出
先進先出
[] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] []
From:http://tw.wingwit.com/Article/program/sjjg/201311/22721.html