mirror of
https://github.com/krahets/hello-algo.git
synced 2026-10-20 21:15:19 +08:00
- `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 <[email protected]>