複選題
6. Given PUSH sequence and POP sequence. Which of the following statements are false?
(A) PUSH 1 2 3 4; POP 1 2 3 4; It must be a Queue
(B) PUSH 1 2 3 4; POP 2 1 3 4; It must be a Stack
(C) PUSH 1 2; POP 1 2; It could be a Stack
(D) PUSH 1 2 3 4; POP 2 3 1 4, It is neither Stack nor Queue

答案:登入後查看
統計: A(0), B(0), C(2), D(0), E(0) #2855513

詳解 (共 2 筆)

#7167509
這是一道關於資料結構(Data Stru...
(共 3699 字,隱藏中)
前往觀看
0
0
#5455686
(A)錯誤,也可能是Stack,只要每P...
(共 70 字,隱藏中)
前往觀看
0
0