
PAT
西西L
这个作者很懒,什么都没留下…
展开
-
PAT Pop Sequence
02-3. Pop Sequence (25)Given a stack which can keep M 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原创 2015-03-14 16:38:03 · 860 阅读 · 1 评论 -
PAT List Leaves
Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.Input Specification:Each input file contains one test case. For each case, the first line give原创 2015-04-26 15:46:07 · 823 阅读 · 0 评论