aboutsummaryrefslogtreecommitdiff
path: root/painting_walls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'painting_walls.cpp')
-rw-r--r--painting_walls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/painting_walls.cpp b/painting_walls.cpp
index adcd32b..5f70012 100644
--- a/painting_walls.cpp
+++ b/painting_walls.cpp
@@ -16,7 +16,7 @@ class Solution {
public:
int paintWalls(vector<int> &cost, vector<int> &time) {
this->n = cost.size();
- vvd(int) memo(n, vector<int>(n + 1));
+ vvd memo(n, vector<int>(n + 1));
this->cost = cost;
this->time = time;
return dfs(0, n, memo);
@@ -27,7 +27,7 @@ private:
vector<int> cost;
vector<int> time;
int n;
- int dfs(int curr, int left_wall, vvd(int) & memo) {
+ int dfs(int curr, int left_wall, vvd & memo) {
if (left_wall <= 0)
return 0;
if (curr == n)