第20940题 单选题
已知循环队列数组长度为6,初始front=1、rear=1,执行入队、入队、入队、出队、入队、入队操作序列后,最终(front, rear)的值为多少?

循环队列规则说明:队空判断条件为 front == rear,队满判断条件为 (rear + 1) % N == front;出队操作为 front = (front + 1) % N,入队操作为 rear = (rear + 1) % N(N为队列数组长度)。

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析