mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-01 20:12:07 +08:00
Finetune doc and code.
This commit is contained in:
@ -8,7 +8,6 @@
|
||||
|
||||
/* Driver Code */
|
||||
int main() {
|
||||
|
||||
/* 初始化无向图 */
|
||||
graphAdjList *graph = newGraphAdjList(5);
|
||||
// 初始化顶点
|
||||
|
||||
@ -118,7 +118,6 @@ Vertex **graphBFS(graphAdjList *t, Vertex *startVet) {
|
||||
resIndex++;
|
||||
queuePop(que); // 队首元素出队
|
||||
}
|
||||
|
||||
// 释放内存
|
||||
freeQueue(que);
|
||||
freeHash(visited);
|
||||
|
||||
Reference in New Issue
Block a user