摘要: 53. 最大子序和 点击标题即可跳转到LeetCode官网进行查看,提交代码 给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 示例: 输入: [-2,1,-3,4,-1,2,1,-5,4] 输出: 6 解释: 连续子数组 [4,-1,2,1] 阅读全文
posted @ 2020-08-09 22:15 jiew-c 阅读(112) 评论(0) 推荐(0)
摘要: 35. Search Insert Position Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would b 阅读全文
posted @ 2020-08-09 21:21 jiew-c 阅读(155) 评论(0) 推荐(0)