![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode成长记录
black_shuang
菜鸟成长哈哈
展开
-
LeetCode-Arrary-TwoSum以及ThreeSum
一、TwoSum题目描述:Given an array of integers, returnindicesof the two numbers such that they add up to a specific target.example:Given nums = [2, 7, 11, 15], target = 9,Because nums[0] + nums[...原创 2019-07-16 10:38:59 · 240 阅读 · 0 评论 -
Leetcode52.Maximum Subarray(贪心与分治)
题目描述:Given an integer arraynums, find the contiguous subarray(containing at least one number) which has the largest sum and return its sum.Example:Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Exp...原创 2019-07-26 13:37:48 · 221 阅读 · 0 评论