支持O(1)時(shí)間push pop min方法的棧
Posted on 2007-10-29 21:30 ZelluX 閱讀(771) 評(píng)論(2) 編輯 收藏 所屬分類: Algorithm算法課的習(xí)題
題目很簡(jiǎn)單,但是代碼很漂亮
[zz]


















支持O(1)時(shí)間push pop min方法的棧Posted on 2007-10-29 21:30 ZelluX 閱讀(771) 評(píng)論(2) 編輯 收藏 所屬分類: Algorithm算法課的習(xí)題 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 評(píng)論# re: 支持O(1)時(shí)間push pop min方法的棧 回復(fù) 更多評(píng)論2007-11-17 14:09 by Lee.MaRS這個(gè)pair用得太難看了...
# re: 支持O(1)時(shí)間push pop min方法的棧 回復(fù) 更多評(píng)論2007-11-20 00:43 by ZelluX@Lee.MaRS
囧 為什么老被你bs @,@
|
||||||||||||||||||||||||||||||||||