aboutsummaryrefslogtreecommitdiff
path: root/stone_game2.cpp
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2025-01-29 11:46:16 -0700
committerJack Sangdahl <[email protected]>2025-01-29 11:46:16 -0700
commit2de9d2dce0fd4de524961ad5188a95410f4432c2 (patch)
tree0da068bf95592f39f2dd4f135b0e73b689df27d0 /stone_game2.cpp
parentad25ada54a68851b935f52f9d1bc4ec969583205 (diff)
downloadleetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.tar.gz
leetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.zip
chore: Fix vvd usages
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];