Skip to content

Commit 03b1c75

Browse files
authored
Update maximum-profit-from-trading-stocks.py
1 parent 23dc586 commit 03b1c75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/maximum-profit-from-trading-stocks.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Time: O(n)
2-
# Space: O(1)
1+
# Time: O(n * b)
2+
# Space: O(b)
33

44
import itertools
55

@@ -22,8 +22,8 @@ def maximumProfit(self, present, future, budget):
2222
return dp[-1]
2323

2424

25-
# Time: O(n)
26-
# Space: O(1)
25+
# Time: O(n * b)
26+
# Space: O(b)
2727
import itertools
2828

2929

0 commit comments

Comments
 (0)