← 回題庫

卷別

資料結構與演算法

選擇

國立中興大學 2025 · 考試 · 第 19 題

(3 points) In an array-based circular queue, how do you check if the queue is full?

  • (A)
    By comparing the front and rear indices directly
  • (B)
    By checking if (rear + 1) % size == front
  • (C)
    By ensuring rear == front at all times
  • (D)
    By ensuring (front + 1) % size == rear

標準解析

AI 已複查