JFE301Xuất hiện trong 1 đề thi
Given the initial and final stack as the following figure. \nInitial stack (top to bottom): 12, 25, 123, 5, 17.\nFinal stack (top to bottom): 83, 25, 123, 5, 17. \nWhich of the following is the right sequence to get final stack from initial stack?
Các lựa chọn
APop, Pop, Push 83, Push 25, Push 83
BPush 83, Pop, Pop, Push 83, Push 12, Pop
CPop, Push 25, Push 83, Pop, Push 83
DPop, Pop, Push 83, Push 25, Pop