aboutsummaryrefslogtreecommitdiff
path: root/stone_game2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stone_game2.cpp')
-rw-r--r--stone_game2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/stone_game2.cpp b/stone_game2.cpp
index 808546f..7ebc520 100644
--- a/stone_game2.cpp
+++ b/stone_game2.cpp
@@ -16,7 +16,7 @@ class Solution {
public:
int stoneGameII(vector<int> &piles) {
int n = piles.size();
- vvd(int) dp(n + 1, vector<int>(n + 1, 0));
+ vvd dp(n + 1, vector<int>(n + 1, 0));
vector<int> sum(n + 1, 0);
for (int i = n - 1; i >= 0; i--)
sum[i] = sum[i + 1] + piles[i];