← 回題庫

卷別

資料結構

選擇

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

If a series of distinct numbers of length nn are pushed onto a stack in sequence, and can be popped at any time during the process (as long as the stack is not empty), how many different valid permutations can be generated?

  • (A)
    1n(2nn+1)\dfrac{1}{n}\dbinom{2n}{n+1}
  • (B)
    2n2^n
  • (C)
    1n+1(2nn)\dfrac{1}{n+1}\dbinom{2n}{n}
  • (D)
    (n+1)!(n+1)!

標準解析

AI 生成