- Windows Develop
- File Size:
- Uploaded by:
Description: Task description
Both stack and queue provide push / pop operations, in which push: adds an element. Pop: pop an element. Give a linear structure in and out order, determine whether the structure is stack or queue.
Enter a description
In the first line, enter an integer s to represent the s set of test data.
For each set of test data, enter an integer n in the first line to represent the number of operations. Then enter n lines, each containing two integers type val. When type = 1, it indicates that the operation is a push operation, and val represents the number entered. When type = 2, it indicates that the operation is a pop operation, and val represents the number.
(Click to check if it's the file you need, and recomment it at the bottom):
|qwer\main.cpp|| 1734 || 2020-11-04
|qwer\queue.cpp|| 205 || 2020-11-04
|qwer\queue.h|| 74 || 2020-11-04
|qwer|| 0 || 2020-11-04|