JFE301Xuất hiện trong 1 đề thi
When the series of operations below is performed on an empty stack, which of the following is the data remaining on the stack? Here, “push x” is the operation to save data x to the stack, and “pop” is used to retrieve data from the stack. \npush 1 → push 2 → pop → push 3 → push 4 → pop → push 5 → pop
Các lựa chọn
A1 and 3
B2 and 4
C4 and 5
D2 and 5