Skip to content

Commit 03481e2

Browse files
authored
Update minimum-cost-to-reach-destination-in-time.cpp
1 parent ce0f09d commit 03481e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

C++/minimum-cost-to-reach-destination-in-time.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Solution {
1616
}
1717

1818
unordered_map<int, int> best;
19+
best[0] = 0;
1920
using T = tuple<int, int, int>;
2021
priority_queue<T, vector<T>, greater<T>> min_heap;
2122
min_heap.emplace(passingFees[0], 0, 0);

0 commit comments

Comments
 (0)