- 博客(1)
- 收藏
- 关注
原创 LeetCode上关于Min Stack遇到的一个小小问题
一个宁静的下午,,百般无聊地打开了leetcode,看到了Min Stack这道题。Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.看了下函数,花了几秒钟想了下,思路倒也是简单。设置一个dataStack,另外设置一个minStack。minStac
2015-05-07 15:25:04 388
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人