字串与子序列系列问题
摘要:
最大子串和 最大子串和 class Solution(object): def maxSubArray(self, nums): """ :type nums: List[int] :rtype: int """ ans, pre_sum = -1e4 - 1, 0 for i in nums: i 阅读全文
posted @ 2022-06-16 12:40 solvit 阅读(34) 评论(0) 推荐(0)
posted @ 2022-06-16 12:40 solvit 阅读(34) 评论(0) 推荐(0)