We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9e8837 commit 37d4e1aCopy full SHA for 37d4e1a
solution/3400-3499/3413.Maximum Coins From K Consecutive Bags/Solution.cpp
@@ -15,6 +15,7 @@ class Solution {
15
int64_t cost() const { return int64_t(value) * (end - start + 1); }
16
int64_t cost(int len) const { return int64_t(value) * len; }
17
};
18
+
19
public:
20
long long maximumCoins(vector<vector<int>>& coins, int k) {
21
int N = int(coins.size());
0 commit comments