I Can Guess the Data Structure!
来源:UVA
标签:数据结构
参考资料:
相似题目:
题目
There is a bag-like data structure, supporting two operations:
Given a sequence of operations with return values, you’re going to guess the data structure. It is
a stack (Last-In, First-Out), a queue (First-In, First-Out), a priority-queue (Always take out larger
elements first) or something else that you can hardly imagine!
输入
There are several test cases. E