Files
hello-algo/codes
Kunchen-Luo c2eb1dbc5a Fix confusion between queSize and rear pointer in ArrayQueue implementation (#1851)
- `queSize` represents the queue's size, not the rear pointer position.
- In `pop`, `queSize--` decreases the size, not the rear pointer.
- The rear pointer is calculated using modulo (`%`) with the `front` and `queSize` to avoid confusion.

Co-authored-by: Chance Luo <247349913+chanceluo1618-bot@users.noreply.github.com>
2026-03-30 14:46:56 +08:00
..
2025-07-10 06:32:25 +08:00
2025-07-10 06:32:25 +08:00
2025-07-10 06:32:25 +08:00
2025-07-10 06:32:25 +08:00
2025-07-10 06:32:25 +08:00
2025-08-04 14:45:14 +08:00
2025-07-10 06:32:25 +08:00