Skip to content

Commit f8ee5ac

Browse files
authored
Update minimize-the-total-price-of-the-trips.cpp
1 parent 79b9812 commit f8ee5ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/minimize-the-total-price-of-the-trips.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Solution2 {
7575
adj[e[1]].emplace_back(e[0]);
7676
}
7777
vector<int> lookup(n);
78-
const function<bool (int, int, int)> dfs = [&](int u, int p, int target) {
78+
const function<bool(int, int, int)> dfs = [&](int u, int p, int target) {
7979
++lookup[u];
8080
if (u == target) {
8181
return true;
@@ -92,7 +92,7 @@ class Solution2 {
9292
return false;
9393
};
9494

95-
const function<pair<int, int> (int, int)> dfs2 = [&](int u, int p) {
95+
const function<pair<int, int>(int, int)> dfs2 = [&](int u, int p) {
9696
int full = price[u] * lookup[u], half = price[u] / 2 * lookup[u];
9797
for (const auto& v : adj[u]) {
9898
if (v == p) {

0 commit comments

Comments
 (0)