PAT 1051 Pop Sequence (25 分)

返回 1051 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 i
相關文章
相關標籤/搜索