mirror of
http://bgp.hk.skcks.cn:10086/https://github.com/krahets/hello-algo
synced 2026-04-20 21:00:58 +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 <247349913+chanceluo1618-bot@users.noreply.github.com>