Merge pull request #2074 from janeyziqinglin/master

53.最大子序和
This commit is contained in:
程序员Carl 2023-05-28 11:04:47 +08:00 committed by GitHub
commit 60a2d4bfa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -139,8 +139,6 @@ Python
```python
class Solution:
def maxSubArray(self, nums: List[int]) -> int:
if len(nums) == 0:
return 0
dp = [0] * len(nums)
dp[0] = nums[0]
result = dp[0]