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 1b47210 commit 10a67b7Copy full SHA for 10a67b7
Python/maximum-value-of-k-coins-from-piles.py
@@ -1,4 +1,4 @@
1
-# Time: O(n * k^2)
+# Time: O(min(n * k^2, m * k)), m = sum(len(pile) for pile in piles)
2
# Space: O(k)
3
4
# dp
0 commit comments