This commit is contained in:
youngyangyang04
2021-11-13 17:20:16 +08:00
parent d745cfbc94
commit 0c4aed8cf1
4 changed files with 10 additions and 6 deletions

View File

@ -4,7 +4,7 @@
</a> </a>
## 53. 最大子序和 # 53. 最大子序和
[力扣题目链接](https://leetcode-cn.com/problems/maximum-subarray/) [力扣题目链接](https://leetcode-cn.com/problems/maximum-subarray/)
@ -137,7 +137,7 @@ public:
## 其他语言版本 ## 其他语言版本
Java ### Java
```java ```java
class Solution { class Solution {
public int maxSubArray(int[] nums) { public int maxSubArray(int[] nums) {
@ -177,7 +177,7 @@ class Solution {
} }
``` ```
Python ### Python
```python ```python
class Solution: class Solution:
def maxSubArray(self, nums: List[int]) -> int: def maxSubArray(self, nums: List[int]) -> int:
@ -192,7 +192,7 @@ class Solution:
return result return result
``` ```
Go ### Go
```go ```go
func maxSubArray(nums []int) int { func maxSubArray(nums []int) int {
@ -208,7 +208,8 @@ func maxSubArray(nums []int) int {
return maxSum return maxSum
} }
``` ```
Javascript:
### Javascript:
```Javascript ```Javascript
var maxSubArray = function(nums) { var maxSubArray = function(nums) {
let result = -Infinity let result = -Infinity

View File

@ -151,6 +151,8 @@
![](https://code-thinking-1253855093.file.myqcloud.com/pics/20211030125421.png) ![](https://code-thinking-1253855093.file.myqcloud.com/pics/20211030125421.png)
这个图是 [代码随想录知识星球](https://mp.weixin.qq.com/s/QVF6upVMSbgvZy8lHZS3CQ) 成员:[](https://wx.zsxq.com/dweb2/index/footprint/185251215558842),所画,总结的非常好,分享给大家。
**最后二叉树系列就这么完美结束了估计这应该是最长的系列了感谢大家33天的坚持与陪伴接下来我们又要开始新的系列了「回溯算法」** **最后二叉树系列就这么完美结束了估计这应该是最长的系列了感谢大家33天的坚持与陪伴接下来我们又要开始新的系列了「回溯算法」**

View File

@ -431,6 +431,7 @@ N皇后问题分析
![](https://code-thinking-1253855093.file.myqcloud.com/pics/20211030124742.png) ![](https://code-thinking-1253855093.file.myqcloud.com/pics/20211030124742.png)
这个图是 [代码随想录知识星球](https://mp.weixin.qq.com/s/QVF6upVMSbgvZy8lHZS3CQ) 成员:[莫非毛](https://wx.zsxq.com/dweb2/index/footprint/828844212542),所画,总结的非常好,分享给大家。
**回溯算法系列正式结束,新的系列终将开始,录友们准备开启新的征程!** **回溯算法系列正式结束,新的系列终将开始,录友们准备开启新的征程!**

View File

@ -128,7 +128,7 @@ Carl个人认为如果找出局部最优并可以推出全局最优就是
![](https://code-thinking-1253855093.file.myqcloud.com/pics/20211110121605.png) ![](https://code-thinking-1253855093.file.myqcloud.com/pics/20211110121605.png)
这个图是 [代码随想录知识星球](https://mp.weixin.qq.com/s/QVF6upVMSbgvZy8lHZS3CQ) 成员:[](https://wx.zsxq.com/dweb2/index/footprint/185251215558842)所画,总结的非常好,分享给大家。
很多没有接触过贪心的同学都会感觉贪心有啥可学的,但只要跟着「代码随想录」坚持下来之后,就会发现,贪心是一种很重要的算法思维而且并不简单,贪心往往妙的出其不意,触不及防! 很多没有接触过贪心的同学都会感觉贪心有啥可学的,但只要跟着「代码随想录」坚持下来之后,就会发现,贪心是一种很重要的算法思维而且并不简单,贪心往往妙的出其不意,触不及防!