mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-14 10:20:40 +08:00
build
This commit is contained in:
@@ -952,7 +952,9 @@ comments: true
|
||||
/* 打印邻接表 */
|
||||
void print() {
|
||||
cout << "邻接表 =" << endl;
|
||||
for (auto& [key, vec] : adjList) {
|
||||
for (auto& adj : adjList) {
|
||||
const auto& key= adj.first;
|
||||
const auto& vec = adj.second;
|
||||
cout << key->val << ": ";
|
||||
PrintUtil::printVector(vetsToVals(vec));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user