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 possible pop sequ...
原创
2019-01-20 17:15:32 ·
443 阅读 ·
0 评论