Skip to content

Commit 10a67b7

Browse files
authored
Update maximum-value-of-k-coins-from-piles.py
1 parent 1b47210 commit 10a67b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/maximum-value-of-k-coins-from-piles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Time: O(n * k^2)
1+
# Time: O(min(n * k^2, m * k)), m = sum(len(pile) for pile in piles)
22
# Space: O(k)
33

44
# dp

0 commit comments

Comments
 (0)