mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 12:58:42 +08:00
Fix some codes.
This commit is contained in:
@ -47,6 +47,7 @@ bool empty(arrayDeque *deque) {
|
||||
return deque->queSize == 0;
|
||||
}
|
||||
|
||||
/* 计算环形数组索引 */
|
||||
int dequeIndex(arrayDeque *deque, int i) {
|
||||
// 通过取余操作实现数组首尾相连
|
||||
// 当 i 越过数组尾部时,回到头部
|
||||
|
||||
Reference in New Issue
Block a user