diff options
author | Jack Sangdahl <[email protected]> | 2025-01-29 11:46:16 -0700 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2025-01-29 11:46:16 -0700 |
commit | 2de9d2dce0fd4de524961ad5188a95410f4432c2 (patch) | |
tree | 0da068bf95592f39f2dd4f135b0e73b689df27d0 /max_val_k_coin_pile.cpp | |
parent | ad25ada54a68851b935f52f9d1bc4ec969583205 (diff) | |
download | leetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.tar.gz leetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.zip |
chore: Fix vvd usages
Diffstat (limited to 'max_val_k_coin_pile.cpp')
-rw-r--r-- | max_val_k_coin_pile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/max_val_k_coin_pile.cpp b/max_val_k_coin_pile.cpp index 6df457a..6452a7b 100644 --- a/max_val_k_coin_pile.cpp +++ b/max_val_k_coin_pile.cpp @@ -13,7 +13,7 @@ class Solution { public: - int maxValueOfCoins(vvd(int) & piles, int k) { + int maxValueOfCoins(vvd & piles, int k) { int n = piles.size(), m[1001][2001] = {}; memset(m, -1, sizeof(m)); function<int(int, int)> dp = [&](int i, int j) { @@ -34,7 +34,7 @@ public: int main() { Solution obj; - vvd(int) + vvd p1 = {{1, 100, 3}, {7, 8, 9}}, p2 = {{100}, {100}, {100}, {100}, {100}, {100}, {1, 1, 1, 1, 1, 1, 700}}; printf("%d\n", obj.maxValueOfCoins(p1, 2)); // expect: 101 |