摘要:
3.2 How would you design a stack which, in addition to push and pop, also has a function min which returns the minimum element? Push, pop and min shou... 阅读全文
posted @ 2015-07-25 12:55
Grandyang
阅读(698)
评论(0)
推荐(0)
摘要:
3.1 Describe how you could use a single array to implement three stacks.这道题让我们用一个数组来实现三个栈,书上给了两种方法,第一种方法是定长分割 Fixed Division,就是每个栈的长度相同,用一个公用的一位数组buff... 阅读全文
posted @ 2015-07-25 12:06
Grandyang
阅读(1615)
评论(0)
推荐(0)

浙公网安备 33010602011771号