Skip to content

Commit 23fcf68

Browse files
authored
Update count-subtrees-with-max-distance-between-cities.cpp
1 parent 31d00c9 commit 23fcf68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/count-subtrees-with-max-distance-between-cities.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Solution {
5757
}
5858
}
5959
}
60-
(*count)[curr] += (*count)[child]; // merge child to count subtrees
60+
(*count)[curr] += (*count)[child]; // merge new child
6161
(*dp)[curr] = move(new_dp_curr);
6262
}
6363
}

0 commit comments

Comments
 (0)