Skip to content

Commit fc2b1ac

Browse files
authored
Improved task 2477
1 parent 2bb2ef4 commit fc2b1ac

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/g2401_2500/s2477_minimum_fuel_cost_to_report_to_the_capital

1 file changed

+1
-1
lines changed

src/main/java/g2401_2500/s2477_minimum_fuel_cost_to_report_to_the_capital/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public long minimumFuelCost(int[][] roads, int seats) {
2424
}
2525

2626
private long solve(ArrayList<ArrayList<Integer>> adj, int seats, int src, int parent) {
27-
int people = 1;
27+
long people = 1L;
2828
for (int i : adj.get(src)) {
2929
if (i != parent) {
3030
people += solve(adj, seats, i, src);

0 commit comments

Comments
 (0)