摘要:
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 should a... 阅读全文
摘要:
In the classic problem of the Towers of Hanoi, you have 3 towers and Ndisks of different sizes which can slide onto any tower.The puzzle starts with d... 阅读全文
摘要:
Describe how you could use a single array to implement three stacks.Divide the array into three fixed parts, each stands for a stack./*Fixed Size Stac... 阅读全文