mirror of
https://github.com/krahets/hello-algo.git
synced 2026-02-10 06:05:35 +08:00
build
This commit is contained in:
@@ -535,6 +535,7 @@ comments: true
|
||||
if (fNext != nullptr) {
|
||||
fNext->prev = nullptr;
|
||||
front->next = nullptr;
|
||||
delete front;
|
||||
}
|
||||
front = fNext; // 更新头结点
|
||||
// 队尾出队操作
|
||||
@@ -545,6 +546,7 @@ comments: true
|
||||
if (rPrev != nullptr) {
|
||||
rPrev->next = nullptr;
|
||||
rear->prev = nullptr;
|
||||
delete rear;
|
||||
}
|
||||
rear = rPrev; // 更新尾结点
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user