栈
yeternity
这个作者很懒,什么都没留下…
展开
-
02-线性结构4 Pop Sequence (25分)
Given a stack which can keep MM numbers at most. Push N numbers in the order of 1, 2, 3, ...,N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop seque原创 2017-05-29 20:16:23 · 387 阅读 · 0 评论 -
03-树3 Tree Traversals Again (25分)
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered from 1 to 6) is traversed, the stac原创 2017-05-29 21:30:03 · 701 阅读 · 0 评论