Given a stack which can keep M M numbers at most. Push numbers in the order of 1, 2, 3, …, N N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence of the stack. For example, if
C语言 02-线性结构4 Pop Sequence
最新推荐文章于 2022-09-20 20:33:27 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)