← 回題庫

卷別

資料結構

選擇

國立中央大學 2026 · 考試 · 第 6 題

Given an input sequence of 1, 2, 3 (pushed into the stack in that order), which of the following is "not possible" the order in which the elements are popped out?

  • (A)
    3, 2, 1
  • (B)
    1, 2, 3
  • (C)
    2, 3, 1
  • (D)
    3, 1, 2

標準解析

AI 生成