diff options
Diffstat (limited to 'buy_sell_stock.cpp')
-rw-r--r-- | buy_sell_stock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buy_sell_stock.cpp b/buy_sell_stock.cpp index 0a5b428..122ee2a 100644 --- a/buy_sell_stock.cpp +++ b/buy_sell_stock.cpp @@ -7,7 +7,7 @@ public: return 0; if (prices.size() == 0 || prices.size() == 1) return 0; - vvd(int) dp(k + 1, vector<int>(prices.size())); + vvd dp(k + 1, vector<int>(prices.size())); for (int i = 0; i < dp.size(); i++) { for (int j = 0; j < dp[i].size(); j++) { if (i == 0 || j == 0) |