PTA_7-1 Pop Sequence(25 分)_給指定的序列壓棧,能夠隨時出棧,問你出棧順序是否正確

7-1 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 pos
相關文章
相關標籤/搜索