Skip to content

Commit 862011a

Browse files
committed
Update paint-house.cpp
1 parent 8174ff0 commit 862011a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

C++/paint-house.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ class Solution {
88
return 0;
99
}
1010

11-
vector<vector<int>> min_cost(2);
12-
min_cost[0] = costs[0];
11+
vector<vector<int>> min_cost(2, costs[0]);
1312

1413
const int n = costs.size();
1514
for (int i = 1; i < n; ++i) {

0 commit comments

Comments
 (0)