We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055efab commit c89c447Copy full SHA for c89c447
C++/the-time-when-the-network-becomes-idle.cpp
@@ -16,7 +16,7 @@ class Solution {
16
while (!empty(q)) {
17
vector<int> new_q;
18
for (const auto& u : q) {
19
- for (int v : adj[u]) {
+ for (const auto& v : adj[u]) {
20
if (lookup[v]) {
21
continue;
22
}
0 commit comments