Skip to content

Commit 156f175

Browse files
authored
Update campus-bikes.cpp
1 parent c42bdce commit 156f175

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/campus-bikes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class Solution {
2121
distances[i].pop_back();
2222
}
2323
while (lookup.size() < workers.size()) {
24-
auto worker = min_heap.top()[1];
25-
auto bike = min_heap.top()[2];
24+
const auto worker = min_heap.top()[1];
25+
const auto bike = min_heap.top()[2];
2626
min_heap.pop();
2727
if (!lookup.count(bike)) {
2828
result[worker] = bike;

0 commit comments

Comments
 (0)