摘要: Min StackDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -... 阅读全文
posted @ 2014-11-18 15:04 陆草纯 阅读(2303) 评论(0) 推荐(0) 编辑
摘要: Copy List with Random PointerA linked list is given such that each node contains an additional random pointer which could point to any node in the lis... 阅读全文
posted @ 2014-11-18 14:41 陆草纯 阅读(223) 评论(0) 推荐(0) 编辑