Skip to content

Commit ba773d9

Browse files
committed
Change 'len' to 'length'
1 parent 775f8c6 commit ba773d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/0121.买卖股票的最佳时机.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class Solution:
308308
class Solution:
309309
def maxProfit(self, prices: List[int]) -> int:
310310
length = len(prices)
311-
if len == 0:
311+
if length == 0:
312312
return 0
313313
dp = [[0] * 2 for _ in range(length)]
314314
dp[0][0] = -prices[0]

0 commit comments

Comments
 (0)