mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-27 13:56:29 +08:00
build
This commit is contained in:
parent
b9848fc87c
commit
e9e4e90342
1 changed files with 1 additions and 5 deletions
|
@ -2499,11 +2499,7 @@ comments: true
|
||||||
return deque->queSize == 0;
|
return deque->queSize == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 判断双向队列是否为空 */
|
/* 计算环形数组索引 */
|
||||||
bool empty(arrayDeque *deque) {
|
|
||||||
return deque->queSize == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int dequeIndex(arrayDeque *deque, int i) {
|
int dequeIndex(arrayDeque *deque, int i) {
|
||||||
// 通过取余操作实现数组首尾相连
|
// 通过取余操作实现数组首尾相连
|
||||||
// 当 i 越过数组尾部时,回到头部
|
// 当 i 越过数组尾部时,回到头部
|
||||||
|
|
Loading…
Reference in a new issue