diff --git a/2014/12/23/my-new-post/index.html b/2014/12/23/my-new-post/index.html index 194b8968de..12b49f0dc3 100644 --- a/2014/12/23/my-new-post/index.html +++ b/2014/12/23/my-new-post/index.html @@ -428,7 +428,7 @@
- 85 + 86 posts
@@ -466,7 +466,7 @@
- +
diff --git a/2014/12/24/MFC 模态对话框/index.html b/2014/12/24/MFC 模态对话框/index.html index b48d846d60..2b3f3ca0dc 100644 --- a/2014/12/24/MFC 模态对话框/index.html +++ b/2014/12/24/MFC 模态对话框/index.html @@ -301,7 +301,7 @@ @@ -451,7 +451,7 @@
- 85 + 86 posts
@@ -489,7 +489,7 @@
- +
diff --git a/2014/12/30/Clone-Graph-Part-I/index.html b/2014/12/30/Clone-Graph-Part-I/index.html index 68dca85d88..349ba44340 100644 --- a/2014/12/30/Clone-Graph-Part-I/index.html +++ b/2014/12/30/Clone-Graph-Part-I/index.html @@ -35,8 +35,8 @@ - + @@ -300,19 +300,19 @@ @@ -356,8 +356,8 @@ @@ -450,7 +453,7 @@
- 85 + 86 posts
@@ -488,7 +491,7 @@
- +
diff --git a/2021/01/24/Leetcode-124-二叉树中的最大路径和-Binary-Tree-Maximum-Path-Sum-题解分析/index.html b/2021/01/24/Leetcode-124-二叉树中的最大路径和-Binary-Tree-Maximum-Path-Sum-题解分析/index.html new file mode 100644 index 0000000000..cbbf3bcceb --- /dev/null +++ b/2021/01/24/Leetcode-124-二叉树中的最大路径和-Binary-Tree-Maximum-Path-Sum-题解分析/index.html @@ -0,0 +1,790 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Leetcode 124 二叉树中的最大路径和(Binary Tree Maximum Path Sum) 题解分析 | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

What hurts more, the pain of hard work or the pain of regret?

+
+ + +
+ + + + + + + + + +
+
+ + +
+ + 0% +
+ + + + +
+
+
+ + +
+ + + + + +
+ + + + + +
+

+ Leetcode 124 二叉树中的最大路径和(Binary Tree Maximum Path Sum) 题解分析 +

+ + +
+ + + + +
+ + +

题目介绍

A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can only appear in the sequence at most once. Note that the path does not need to pass through the root.

+

The path sum of a path is the sum of the node’s values in the path.

+

Given the root of a binary tree, return the maximum path sum of any path.

+

路径 被定义为一条从树中任意节点出发,沿父节点-子节点连接,达到任意节点的序列。该路径 至少包含一个 节点,且不一定经过根节点。

+

路径和 是路径中各节点值的总和。

+

给你一个二叉树的根节点 root ,返回其 最大路径和

+

简要分析

其实这个题目会被误解成比较简单,左子树最大的,或者右子树最大的,或者两边加一下,仔细想想都不对,其实有可能是产生于左子树中,或者右子树中,这两个都是指跟左子树根还有右子树根没关系的,这么说感觉不太容易理解,画个图

可以看到图里,其实最长路径和是左边这个子树组成的,跟根节点还有右子树完全没关系,然后再想一种情况,如果是整棵树就是图中的左子树,那么这个最长路径和就是左子树加右子树加根节点了,所以不是我一开始想得那么简单,在代码实现中也需要一些技巧

+

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
int ansNew = Integer.MIN_VALUE;
public int maxPathSum(TreeNode root) {
maxSumNew(root);
return ansNew;
}

public int maxSumNew(TreeNode root) {
if (root == null) {
return 0;
}
// 这里是个简单的递归,就是去递归左右子树,但是这里其实有个概念,当这样处理时,其实相当于把子树的内部的最大路径和已经算出来了
int left = maxSumNew(root.left);
int right = maxSumNew(root.right);
// 这里前面我有点没想明白,但是看到 ansNew 的比较,其实相当于,返回的是三种情况里的最大值,一个是左子树+根,一个是右子树+根,一个是单独根节点,
// 这样这个递归的返回才会有意义,不然像原来的方法,它可能是跳着的,但是这种情况其实是借助于 ansNew 这个全局的最大值,因为原来我觉得要比较的是
// left, right, left + root , right + root, root, left + right + root 这些的最大值,这里是分成了两个阶段,left 跟 right 的最大值已经在上面的
// 调用过程中赋值给 ansNew 了
int currentSum = Math.max(Math.max(root.val + left , root.val + right), root.val);
// 这边返回的是 currentSum,然后再用它跟 left + right + root 进行对比,然后再去更新 ans
// PS: 有个小点也是这边的破局点,就是这个 ansNew
int res = Math.max(left + right + root.val, currentSum);
ans = Math.max(res, ans);
return currentSum;
}
+ +

这里非常重要的就是 ansNew 是最后的一个结果,而对于 maxSumNew 这个函数的返回值其实是需要包含了一个连续结果,因为要返回继续去算路径和,所以返回的是 currentSum,最终结果是 ansNew

+

结果图

难得有个 100%,贴个图哈哈

+ +
+ + + + + + + + +
+
请我喝杯咖啡
+ + +
+ + + +
+ +
+ + + + +
+ + + + + + +
+ + +
+
+ +
+
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/404.html b/404.html index 8b948dea0a..8a299fee44 100644 --- a/404.html +++ b/404.html @@ -320,7 +320,7 @@
- 85 + 86 posts
@@ -358,7 +358,7 @@
- +
diff --git a/404/index.html b/404/index.html index 112efe6a8f..a230912041 100644 --- a/404/index.html +++ b/404/index.html @@ -307,7 +307,7 @@
- 85 + 86 posts
@@ -345,7 +345,7 @@
- +
diff --git a/archives/2014/12/index.html b/archives/2014/12/index.html index 422a5310a4..f58dda0be0 100644 --- a/archives/2014/12/index.html +++ b/archives/2014/12/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -350,7 +350,7 @@
- 85 + 86 posts
@@ -388,7 +388,7 @@
- +
diff --git a/archives/2014/index.html b/archives/2014/index.html index 251f145ff1..9a0505a5bf 100644 --- a/archives/2014/index.html +++ b/archives/2014/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -350,7 +350,7 @@ @@ -388,7 +388,7 @@
- +
diff --git a/archives/2015/01/index.html b/archives/2015/01/index.html index 710209d25f..69f802bc63 100644 --- a/archives/2015/01/index.html +++ b/archives/2015/01/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -350,7 +350,7 @@ @@ -388,7 +388,7 @@
- +
diff --git a/archives/2015/03/index.html b/archives/2015/03/index.html index f9d4b7c390..f12892aaf7 100644 --- a/archives/2015/03/index.html +++ b/archives/2015/03/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -350,7 +350,7 @@ @@ -388,7 +388,7 @@
- +
diff --git a/archives/2015/04/index.html b/archives/2015/04/index.html index 2c2a3116d3..3993d4a46a 100644 --- a/archives/2015/04/index.html +++ b/archives/2015/04/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/archives/2015/06/index.html b/archives/2015/06/index.html index afc4db1dad..6748a972d5 100644 --- a/archives/2015/06/index.html +++ b/archives/2015/06/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2015/index.html b/archives/2015/index.html index 5580ab1f5b..cbec65632b 100644 --- a/archives/2015/index.html +++ b/archives/2015/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -470,7 +470,7 @@ @@ -508,7 +508,7 @@
- +
diff --git a/archives/2016/07/index.html b/archives/2016/07/index.html index bed04f4aac..6bb992158a 100644 --- a/archives/2016/07/index.html +++ b/archives/2016/07/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2016/08/index.html b/archives/2016/08/index.html index fbe72c114d..4c5832e8ce 100644 --- a/archives/2016/08/index.html +++ b/archives/2016/08/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/archives/2016/09/index.html b/archives/2016/09/index.html index 089f49378f..c53a7ba27c 100644 --- a/archives/2016/09/index.html +++ b/archives/2016/09/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2016/10/index.html b/archives/2016/10/index.html index 315f1ae195..b60f52b4a4 100644 --- a/archives/2016/10/index.html +++ b/archives/2016/10/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/archives/2016/11/index.html b/archives/2016/11/index.html index 65824c32fe..cae771e1e5 100644 --- a/archives/2016/11/index.html +++ b/archives/2016/11/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2016/index.html b/archives/2016/index.html index b593d3c5ed..70fea5fb42 100644 --- a/archives/2016/index.html +++ b/archives/2016/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -430,7 +430,7 @@ @@ -468,7 +468,7 @@
- +
diff --git a/archives/2017/03/index.html b/archives/2017/03/index.html index 446fde08d7..610616813f 100644 --- a/archives/2017/03/index.html +++ b/archives/2017/03/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2017/04/index.html b/archives/2017/04/index.html index f8df48d7c4..9a3dc6cfda 100644 --- a/archives/2017/04/index.html +++ b/archives/2017/04/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2017/05/index.html b/archives/2017/05/index.html index 2febd430ab..4eb33488df 100644 --- a/archives/2017/05/index.html +++ b/archives/2017/05/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2017/index.html b/archives/2017/index.html index 281e9aa756..e9ecd25060 100644 --- a/archives/2017/index.html +++ b/archives/2017/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -350,7 +350,7 @@ @@ -388,7 +388,7 @@
- +
diff --git a/archives/2019/06/index.html b/archives/2019/06/index.html index 63073c7c82..63380b5e93 100644 --- a/archives/2019/06/index.html +++ b/archives/2019/06/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2019/09/index.html b/archives/2019/09/index.html index 42d6f3c741..9c1301d7cf 100644 --- a/archives/2019/09/index.html +++ b/archives/2019/09/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2019/12/index.html b/archives/2019/12/index.html index 2cfb7db558..15628070c6 100644 --- a/archives/2019/12/index.html +++ b/archives/2019/12/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -390,7 +390,7 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2019/index.html b/archives/2019/index.html index 31f45a7eee..c51da84336 100644 --- a/archives/2019/index.html +++ b/archives/2019/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -430,7 +430,7 @@ @@ -468,7 +468,7 @@
- +
diff --git a/archives/2020/01/index.html b/archives/2020/01/index.html index b07cd3068d..327a50567c 100644 --- a/archives/2020/01/index.html +++ b/archives/2020/01/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -390,7 +390,7 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/02/index.html b/archives/2020/02/index.html index aeaf548e2a..0cc36bb3ba 100644 --- a/archives/2020/02/index.html +++ b/archives/2020/02/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/03/index.html b/archives/2020/03/index.html index a219f73cd5..784d24a96e 100644 --- a/archives/2020/03/index.html +++ b/archives/2020/03/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -390,7 +390,7 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/04/index.html b/archives/2020/04/index.html index de8e173d55..1b1535c2c9 100644 --- a/archives/2020/04/index.html +++ b/archives/2020/04/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/05/index.html b/archives/2020/05/index.html index 5d65cb2181..8ce23c9919 100644 --- a/archives/2020/05/index.html +++ b/archives/2020/05/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -390,7 +390,7 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/06/index.html b/archives/2020/06/index.html index 20c7889f6f..d24f4eea6b 100644 --- a/archives/2020/06/index.html +++ b/archives/2020/06/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/07/index.html b/archives/2020/07/index.html index cede03b5f6..8a6bb803fe 100644 --- a/archives/2020/07/index.html +++ b/archives/2020/07/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/08/index.html b/archives/2020/08/index.html index c01ce8415d..a9ddc07dd9 100644 --- a/archives/2020/08/index.html +++ b/archives/2020/08/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -390,7 +390,7 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/09/index.html b/archives/2020/09/index.html index c8b49e5ff3..d05d8305cb 100644 --- a/archives/2020/09/index.html +++ b/archives/2020/09/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/10/index.html b/archives/2020/10/index.html index 6df5c3a1e1..4489828396 100644 --- a/archives/2020/10/index.html +++ b/archives/2020/10/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/11/index.html b/archives/2020/11/index.html index c08d215cae..ce9275163d 100644 --- a/archives/2020/11/index.html +++ b/archives/2020/11/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -390,7 +390,7 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/12/index.html b/archives/2020/12/index.html index 255fb94bd5..137b6c6343 100644 --- a/archives/2020/12/index.html +++ b/archives/2020/12/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/index.html b/archives/2020/index.html index b6717a2f9a..35281510e3 100644 --- a/archives/2020/index.html +++ b/archives/2020/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/2020/page/2/index.html b/archives/2020/page/2/index.html index bca03f995f..365eaf394c 100644 --- a/archives/2020/page/2/index.html +++ b/archives/2020/page/2/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/2020/page/3/index.html b/archives/2020/page/3/index.html index 20fdf19f4c..1d109266aa 100644 --- a/archives/2020/page/3/index.html +++ b/archives/2020/page/3/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/2020/page/4/index.html b/archives/2020/page/4/index.html index 17683db9ca..75768e9e44 100644 --- a/archives/2020/page/4/index.html +++ b/archives/2020/page/4/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/2020/page/5/index.html b/archives/2020/page/5/index.html index 3ed3ccdefc..6a377012a3 100644 --- a/archives/2020/page/5/index.html +++ b/archives/2020/page/5/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/2020/page/6/index.html b/archives/2020/page/6/index.html index fe2f0050e5..cd6393a6d5 100644 --- a/archives/2020/page/6/index.html +++ b/archives/2020/page/6/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -353,7 +353,7 @@ @@ -391,7 +391,7 @@
- +
diff --git a/archives/2021/01/index.html b/archives/2021/01/index.html index 9240ca5d65..ec25f89eaf 100644 --- a/archives/2021/01/index.html +++ b/archives/2021/01/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2021
+ +
@@ -350,7 +370,7 @@ @@ -388,7 +408,7 @@
- +
diff --git a/archives/2021/index.html b/archives/2021/index.html index 94d3b2825b..b98bcc2de7 100644 --- a/archives/2021/index.html +++ b/archives/2021/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2021
+ +
@@ -350,7 +370,7 @@ @@ -388,7 +408,7 @@
- +
diff --git a/archives/index.html b/archives/index.html index a44dab15a8..e2c302da6a 100644 --- a/archives/index.html +++ b/archives/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2021
+ +
@@ -399,26 +419,6 @@
- -
@@ -496,7 +496,7 @@ @@ -534,7 +534,7 @@
- +
diff --git a/archives/page/2/index.html b/archives/page/2/index.html index 48195db31a..c108366d9b 100644 --- a/archives/page/2/index.html +++ b/archives/page/2/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/page/3/index.html b/archives/page/3/index.html index 86d0d4a7f0..9f186b3f92 100644 --- a/archives/page/3/index.html +++ b/archives/page/3/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/page/4/index.html b/archives/page/4/index.html index 719697f5d1..aa54765bdd 100644 --- a/archives/page/4/index.html +++ b/archives/page/4/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/page/5/index.html b/archives/page/5/index.html index 6e99341dc1..ad29ab1074 100644 --- a/archives/page/5/index.html +++ b/archives/page/5/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/page/6/index.html b/archives/page/6/index.html index 8947d2f465..305084828e 100644 --- a/archives/page/6/index.html +++ b/archives/page/6/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -399,26 +419,6 @@
- -
@@ -496,7 +496,7 @@ @@ -534,7 +534,7 @@
- +
diff --git a/archives/page/7/index.html b/archives/page/7/index.html index 8ad88cf151..dc5e4f0069 100644 --- a/archives/page/7/index.html +++ b/archives/page/7/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2019
+ +
@@ -402,26 +422,6 @@
- -
@@ -499,7 +499,7 @@ @@ -537,7 +537,7 @@
- +
diff --git a/archives/page/8/index.html b/archives/page/8/index.html index 8b92a4addc..fee17cc9e8 100644 --- a/archives/page/8/index.html +++ b/archives/page/8/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2016
+ +
@@ -399,26 +419,6 @@
- -
@@ -496,7 +496,7 @@ @@ -534,7 +534,7 @@
- +
diff --git a/archives/page/9/index.html b/archives/page/9/index.html index 2563067b28..996bea6538 100644 --- a/archives/page/9/index.html +++ b/archives/page/9/index.html @@ -208,7 +208,7 @@
- Good! 85 posts in total. Keep on posting. + Good! 86 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2015
+ +
@@ -396,7 +416,7 @@ @@ -434,7 +454,7 @@
- +
diff --git a/atom.xml b/atom.xml index ec2af0de2d..288424b1eb 100644 --- a/atom.xml +++ b/atom.xml @@ -6,7 +6,7 @@ - 2021-01-17T15:29:09.250Z + 2021-01-24T14:45:03.748Z https://nicksxs.me/ @@ -16,6 +16,49 @@ Hexo + + Leetcode 124 二叉树中的最大路径和(Binary Tree Maximum Path Sum) 题解分析 + + https://nicksxs.me/2021/01/24/Leetcode-124-%E4%BA%8C%E5%8F%89%E6%A0%91%E4%B8%AD%E7%9A%84%E6%9C%80%E5%A4%A7%E8%B7%AF%E5%BE%84%E5%92%8C-Binary-Tree-Maximum-Path-Sum-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ + 2021-01-24T14:45:03.000Z + 2021-01-24T14:45:03.748Z + + + + + + + + <h3 id="题目介绍"><a href="#题目介绍" class="headerlink" title="题目介绍"></a>题目介绍</h3><p>A <strong>path</strong> in a binary tree is a sequence of + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 聊聊那些加塞狗 @@ -58,7 +101,7 @@ https://nicksxs.me/2021/01/10/Leetcode-160-%E7%9B%B8%E4%BA%A4%E9%93%BE%E8%A1%A8-intersection-of-two-linked-lists-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ 2021-01-10T13:09:28.000Z - 2021-01-10T13:09:29.151Z + 2021-01-22T12:22:13.202Z @@ -66,7 +109,7 @@ - <h2 id="题目介绍"><a href="#题目介绍" class="headerlink" title="题目介绍"></a>题目介绍</h2><p>Write a program to find the node at which the intersection of + <h2 id="题目介绍"><a href="#题目介绍" class="headerlink" @@ -795,47 +838,4 @@ - - mybatis 的 $ 和 # 是有啥区别 - - https://nicksxs.me/2020/09/06/mybatis-%E7%9A%84-%E5%92%8C-%E6%98%AF%E6%9C%89%E5%95%A5%E5%8C%BA%E5%88%AB/ - 2020-09-06T15:14:50.000Z - 2020-09-06T15:18:32.000Z - - - - - - - - <p>这个问题也是面试中常被问到的,就抽空来了解下这个,跳过一大段前面初始化的逻辑,<br>对于一条<code>select * from t1 where id = #{id}</code>这样的 sql,在初始化扫描 mapper 的xml文件的时候会根据是否是 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/baidu_verify_Gl8jtoDV4z.html b/baidu_verify_Gl8jtoDV4z.html index fc2a70fc66..3536e0ffff 100644 --- a/baidu_verify_Gl8jtoDV4z.html +++ b/baidu_verify_Gl8jtoDV4z.html @@ -309,7 +309,7 @@ @@ -347,7 +347,7 @@
- +
diff --git a/baidusitemap.xml b/baidusitemap.xml index 829843043e..4254a29fc3 100644 --- a/baidusitemap.xml +++ b/baidusitemap.xml @@ -1,11 +1,14 @@ - https://nicksxs.me/2021/01/17/%E8%81%8A%E8%81%8A%E9%82%A3%E4%BA%9B%E5%8A%A0%E5%A1%9E%E7%8B%97/ - 2021-01-17 + https://nicksxs.me/2021/01/24/Leetcode-124-%E4%BA%8C%E5%8F%89%E6%A0%91%E4%B8%AD%E7%9A%84%E6%9C%80%E5%A4%A7%E8%B7%AF%E5%BE%84%E5%92%8C-Binary-Tree-Maximum-Path-Sum-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ + 2021-01-24 https://nicksxs.me/2021/01/10/Leetcode-160-%E7%9B%B8%E4%BA%A4%E9%93%BE%E8%A1%A8-intersection-of-two-linked-lists-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ - 2021-01-10 + 2021-01-22 + + https://nicksxs.me/2021/01/17/%E8%81%8A%E8%81%8A%E9%82%A3%E4%BA%9B%E5%8A%A0%E5%A1%9E%E7%8B%97/ + 2021-01-17 https://nicksxs.me/2021/01/03/%E8%81%8A%E8%81%8A-Java-%E7%9A%84-equals-%E5%92%8C-hashCode-%E6%96%B9%E6%B3%95/ 2021-01-03 @@ -163,40 +166,43 @@ https://nicksxs.me/2020/01/19/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E5%9B%9B/ 2020-01-18 - https://nicksxs.me/2017/05/09/ambari-summary/ + https://nicksxs.me/2019/12/26/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D/ 2020-01-12 - https://nicksxs.me/2016/08/14/34-Search-for-a-Range/ + https://nicksxs.me/2020/01/04/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E4%BA%8C/ 2020-01-12 - https://nicksxs.me/2014/12/24/MFC%20%E6%A8%A1%E6%80%81%E5%AF%B9%E8%AF%9D%E6%A1%86/ + https://nicksxs.me/2015/01/14/Two-Sum/ + 2020-01-12 + + https://nicksxs.me/2015/03/11/Reverse-Bits/ 2020-01-12 https://nicksxs.me/2019/12/10/Redis-Part-1/ 2020-01-12 - https://nicksxs.me/2015/01/14/Two-Sum/ + https://nicksxs.me/2015/03/13/Reverse-Integer/ 2020-01-12 - https://nicksxs.me/2019/12/26/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D/ + https://nicksxs.me/2017/05/09/ambari-summary/ 2020-01-12 - https://nicksxs.me/2015/03/13/Reverse-Integer/ + https://nicksxs.me/2016/08/14/docker-mysql-cluster/ 2020-01-12 - https://nicksxs.me/2015/03/11/Reverse-Bits/ + https://nicksxs.me/2019/06/18/openresty/ 2020-01-12 - https://nicksxs.me/2016/08/14/docker-mysql-cluster/ + https://nicksxs.me/2016/10/11/minimum-size-subarray-sum-209/ 2020-01-12 https://nicksxs.me/2016/09/29/binary-watch/ 2020-01-12 - https://nicksxs.me/2016/10/11/minimum-size-subarray-sum-209/ + https://nicksxs.me/2015/04/14/Add-Two-Number/ 2020-01-12 - https://nicksxs.me/2019/06/18/openresty/ + https://nicksxs.me/2016/08/14/34-Search-for-a-Range/ 2020-01-12 https://nicksxs.me/2016/11/10/php-abstract-class-and-interface/ @@ -205,46 +211,43 @@ https://nicksxs.me/2020/01/10/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E4%B8%89/ 2020-01-12 - https://nicksxs.me/2020/01/04/redis%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E4%BB%8B%E7%BB%8D%E4%BA%8C/ + https://nicksxs.me/2014/12/24/MFC%20%E6%A8%A1%E6%80%81%E5%AF%B9%E8%AF%9D%E6%A1%86/ 2020-01-12 - https://nicksxs.me/2015/04/14/Add-Two-Number/ + https://nicksxs.me/2015/06/22/invert-binary-tree/ 2020-01-12 - https://nicksxs.me/2014/12/23/my-new-post/ + https://nicksxs.me/2019/09/23/AbstractQueuedSynchronizer/ 2020-01-12 https://nicksxs.me/2017/03/28/spark-little-tips/ 2020-01-12 - https://nicksxs.me/2015/04/15/Leetcode-No-3/ - 2020-01-12 - - https://nicksxs.me/2015/06/22/invert-binary-tree/ + https://nicksxs.me/2016/07/13/swoole-websocket-test/ 2020-01-12 - https://nicksxs.me/2014/12/30/Clone-Graph-Part-I/ + https://nicksxs.me/2016/10/12/summary-ranges-228/ 2020-01-12 - https://nicksxs.me/2016/07/13/swoole-websocket-test/ + https://nicksxs.me/2017/04/25/rabbitmq-tips/ 2020-01-12 - https://nicksxs.me/2019/09/23/AbstractQueuedSynchronizer/ + https://nicksxs.me/2015/01/16/pcre-intro-and-a-simple-package/ 2020-01-12 - https://nicksxs.me/2015/01/16/pcre-intro-and-a-simple-package/ + https://nicksxs.me/2014/12/30/Clone-Graph-Part-I/ 2020-01-12 - https://nicksxs.me/2015/01/04/Path-Sum/ + https://nicksxs.me/2014/12/23/my-new-post/ 2020-01-12 - https://nicksxs.me/2016/10/12/summary-ranges-228/ + https://nicksxs.me/2015/03/11/Number-Of-1-Bits/ 2020-01-12 - https://nicksxs.me/2017/04/25/rabbitmq-tips/ + https://nicksxs.me/2015/04/15/Leetcode-No-3/ 2020-01-12 - https://nicksxs.me/2015/03/11/Number-Of-1-Bits/ + https://nicksxs.me/2015/01/04/Path-Sum/ 2020-01-12 https://nicksxs.me/2019/12/21/%E8%81%8A%E8%81%8AJava%E4%B8%AD%E7%9A%84%E5%8D%95%E4%BE%8B%E6%A8%A1%E5%BC%8F/ diff --git a/categories/Binary-Tree/index.html b/categories/Binary-Tree/index.html index c1e4d53ed6..9f772b5dd2 100644 --- a/categories/Binary-Tree/index.html +++ b/categories/Binary-Tree/index.html @@ -213,6 +213,29 @@
+
+ 2021 +
+ +
2020
@@ -330,7 +353,7 @@ @@ -368,7 +391,7 @@
- +
diff --git a/categories/C/Mysql/index.html b/categories/C/Mysql/index.html index da728a5c08..2a12d8cd0b 100644 --- a/categories/C/Mysql/index.html +++ b/categories/C/Mysql/index.html @@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/C/Redis/index.html b/categories/C/Redis/index.html index ab320f1578..67891f02bf 100644 --- a/categories/C/Redis/index.html +++ b/categories/C/Redis/index.html @@ -473,7 +473,7 @@ @@ -511,7 +511,7 @@
- +
diff --git a/categories/C/index.html b/categories/C/index.html index 3e6b6028b2..a8197ed2bd 100644 --- a/categories/C/index.html +++ b/categories/C/index.html @@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/categories/C/page/2/index.html b/categories/C/page/2/index.html index 8a93c31eb8..4dc3f6b422 100644 --- a/categories/C/page/2/index.html +++ b/categories/C/page/2/index.html @@ -356,7 +356,7 @@ @@ -394,7 +394,7 @@
- +
diff --git a/categories/Dubbo-RPC-SPI/index.html b/categories/Dubbo-RPC-SPI/index.html index aee59b65ac..329a1330cc 100644 --- a/categories/Dubbo-RPC-SPI/index.html +++ b/categories/Dubbo-RPC-SPI/index.html @@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Dubbo-RPC/index.html b/categories/Dubbo-RPC/index.html index f1a43e415c..353ce68641 100644 --- a/categories/Dubbo-RPC/index.html +++ b/categories/Dubbo-RPC/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Dubbo/SPI/Adaptive/index.html b/categories/Dubbo/SPI/Adaptive/index.html index a7e385d580..4050e7dcd7 100644 --- a/categories/Dubbo/SPI/Adaptive/index.html +++ b/categories/Dubbo/SPI/Adaptive/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Dubbo/SPI/index.html b/categories/Dubbo/SPI/index.html index 45a0ec1ed8..d8d7f3ca75 100644 --- a/categories/Dubbo/SPI/index.html +++ b/categories/Dubbo/SPI/index.html @@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Dubbo/index.html b/categories/Dubbo/index.html index c4177f0e29..1c0c152924 100644 --- a/categories/Dubbo/index.html +++ b/categories/Dubbo/index.html @@ -350,7 +350,7 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/Dubbo/容错机制/index.html b/categories/Dubbo/容错机制/index.html index 2712d171fa..2aa8b80ba9 100644 --- a/categories/Dubbo/容错机制/index.html +++ b/categories/Dubbo/容错机制/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Filter/index.html b/categories/Filter/index.html index 31a46f6037..f70e30fa35 100644 --- a/categories/Filter/index.html +++ b/categories/Filter/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Interceptor-AOP/index.html b/categories/Interceptor-AOP/index.html index f06075ee1c..d61201980d 100644 --- a/categories/Interceptor-AOP/index.html +++ b/categories/Interceptor-AOP/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/Apollo/index.html b/categories/Java/Apollo/index.html index ef95345523..0d68a3031a 100644 --- a/categories/Java/Apollo/index.html +++ b/categories/Java/Apollo/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/Apollo/value/index.html b/categories/Java/Apollo/value/index.html index 66e497e58e..17ae585c86 100644 --- a/categories/Java/Apollo/value/index.html +++ b/categories/Java/Apollo/value/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/Design-Patterns/index.html b/categories/Java/Design-Patterns/index.html index 2bf92c8608..02608efab7 100644 --- a/categories/Java/Design-Patterns/index.html +++ b/categories/Java/Design-Patterns/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/GC/index.html b/categories/Java/GC/index.html index da3300d980..f8cc625a22 100644 --- a/categories/Java/GC/index.html +++ b/categories/Java/GC/index.html @@ -333,7 +333,7 @@ @@ -371,7 +371,7 @@
- +
diff --git a/categories/Java/JVM/index.html b/categories/Java/JVM/index.html index 96d8dc9cb8..3bcdb0090f 100644 --- a/categories/Java/JVM/index.html +++ b/categories/Java/JVM/index.html @@ -333,7 +333,7 @@ @@ -371,7 +371,7 @@
- +
diff --git a/categories/Java/Maven/index.html b/categories/Java/Maven/index.html index 64f8353ab1..5c3242d9b1 100644 --- a/categories/Java/Maven/index.html +++ b/categories/Java/Maven/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/Mybatis/index.html b/categories/Java/Mybatis/index.html index 3a8bacfbbc..06e991b2ab 100644 --- a/categories/Java/Mybatis/index.html +++ b/categories/Java/Mybatis/index.html @@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Java/Singleton/index.html b/categories/Java/Singleton/index.html index 4e643f959f..0db5d311fc 100644 --- a/categories/Java/Singleton/index.html +++ b/categories/Java/Singleton/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/index.html b/categories/Java/index.html index 75d05a0972..646a4fd198 100644 --- a/categories/Java/index.html +++ b/categories/Java/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
@@ -602,7 +602,12 @@ -info/busuanzi/2.3/busuanzi.pure.mini.js"> +k" rel="noopener" target="_blank">NexT.Pisces +
+ + +
+
+ +
@@ -397,26 +417,6 @@
- -
@@ -493,7 +493,7 @@ @@ -531,7 +531,7 @@
- +
diff --git a/categories/Java/page/3/index.html b/categories/Java/page/3/index.html index 21623b7714..2bf2d9dcbf 100644 --- a/categories/Java/page/3/index.html +++ b/categories/Java/page/3/index.html @@ -213,6 +213,29 @@
+
+ 2020 +
+ +
2019
@@ -333,7 +356,7 @@ @@ -371,7 +394,7 @@
- +
diff --git a/categories/Java/类加载/index.html b/categories/Java/类加载/index.html index 26aa766dcd..d2c37d6150 100644 --- a/categories/Java/类加载/index.html +++ b/categories/Java/类加载/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/集合/index.html b/categories/Java/集合/index.html index 99d2a2bb36..a7509aea2f 100644 --- a/categories/Java/集合/index.html +++ b/categories/Java/集合/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Linux/index.html b/categories/Linux/index.html index d832cc2142..a16b33931d 100644 --- a/categories/Linux/index.html +++ b/categories/Linux/index.html @@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Linux/命令/echo/index.html b/categories/Linux/命令/echo/index.html index 589bcd2df0..53b81a2715 100644 --- a/categories/Linux/命令/echo/index.html +++ b/categories/Linux/命令/echo/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Linux/命令/grep/index.html b/categories/Linux/命令/grep/index.html index b383d5bede..e18ff2bee3 100644 --- a/categories/Linux/命令/grep/index.html +++ b/categories/Linux/命令/grep/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Linux/命令/index.html b/categories/Linux/命令/index.html index a649a59501..7c33e1d6c1 100644 --- a/categories/Linux/命令/index.html +++ b/categories/Linux/命令/index.html @@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/MQ/index.html b/categories/MQ/index.html index 8fd9bcb14b..bebaec331f 100644 --- a/categories/MQ/index.html +++ b/categories/MQ/index.html @@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/Mac/Homebrew/index.html b/categories/Mac/Homebrew/index.html index 8f0d522f2b..1217670943 100644 --- a/categories/Mac/Homebrew/index.html +++ b/categories/Mac/Homebrew/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mac/index.html b/categories/Mac/index.html index 83ff086acd..92c55918d0 100644 --- a/categories/Mac/index.html +++ b/categories/Mac/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mybatis/index.html b/categories/Mybatis/index.html index 37d18b800c..ea4bb5a930 100644 --- a/categories/Mybatis/index.html +++ b/categories/Mybatis/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mybatis/缓存/index.html b/categories/Mybatis/缓存/index.html index 99e497a904..a4fdb778d0 100644 --- a/categories/Mybatis/缓存/index.html +++ b/categories/Mybatis/缓存/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mysql/Sql注入/index.html b/categories/Mysql/Sql注入/index.html index cce8657864..a8abacae56 100644 --- a/categories/Mysql/Sql注入/index.html +++ b/categories/Mysql/Sql注入/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mysql/index.html b/categories/Mysql/index.html index ca2bb702f1..eb9c053e2a 100644 --- a/categories/Mysql/index.html +++ b/categories/Mysql/index.html @@ -390,7 +390,7 @@ @@ -428,7 +428,7 @@
- +
diff --git a/categories/Mysql/数据结构/index.html b/categories/Mysql/数据结构/index.html index b3ea4c38a3..a15d3b18c2 100644 --- a/categories/Mysql/数据结构/index.html +++ b/categories/Mysql/数据结构/index.html @@ -350,7 +350,7 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/Mysql/源码/index.html b/categories/Mysql/源码/index.html index 579269c5ae..560f1765f8 100644 --- a/categories/Mysql/源码/index.html +++ b/categories/Mysql/源码/index.html @@ -350,7 +350,7 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/Mysql/索引/index.html b/categories/Mysql/索引/index.html index d241a5e4fa..c1ba29d992 100644 --- a/categories/Mysql/索引/index.html +++ b/categories/Mysql/索引/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Redis/Distributed-Lock/index.html b/categories/Redis/Distributed-Lock/index.html index c0b7e9ad39..8be7209fac 100644 --- a/categories/Redis/Distributed-Lock/index.html +++ b/categories/Redis/Distributed-Lock/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Redis/index.html b/categories/Redis/index.html index a36639147f..ca68e15a10 100644 --- a/categories/Redis/index.html +++ b/categories/Redis/index.html @@ -473,7 +473,7 @@ @@ -511,7 +511,7 @@
- +
diff --git a/categories/Redis/数据结构/index.html b/categories/Redis/数据结构/index.html index 845ab981eb..beea73feb0 100644 --- a/categories/Redis/数据结构/index.html +++ b/categories/Redis/数据结构/index.html @@ -453,7 +453,7 @@ @@ -491,7 +491,7 @@
- +
diff --git a/categories/Redis/源码/index.html b/categories/Redis/源码/index.html index e35186ff90..9f85a21b51 100644 --- a/categories/Redis/源码/index.html +++ b/categories/Redis/源码/index.html @@ -453,7 +453,7 @@ @@ -491,7 +491,7 @@
- +
diff --git a/categories/RocketMQ/index.html b/categories/RocketMQ/index.html index 7eebd8ee7e..09f67a8b54 100644 --- a/categories/RocketMQ/index.html +++ b/categories/RocketMQ/index.html @@ -370,7 +370,7 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/Spring/Mybatis/index.html b/categories/Spring/Mybatis/index.html index bdc7251537..55ed81a3d7 100644 --- a/categories/Spring/Mybatis/index.html +++ b/categories/Spring/Mybatis/index.html @@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Spring/Servlet/Interceptor/AOP/index.html b/categories/Spring/Servlet/Interceptor/AOP/index.html index 953a630e14..60a65c9474 100644 --- a/categories/Spring/Servlet/Interceptor/AOP/index.html +++ b/categories/Spring/Servlet/Interceptor/AOP/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Spring/Servlet/Interceptor/index.html b/categories/Spring/Servlet/Interceptor/index.html index bf8ed94d8f..33d7943f32 100644 --- a/categories/Spring/Servlet/Interceptor/index.html +++ b/categories/Spring/Servlet/Interceptor/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Spring/Servlet/index.html b/categories/Spring/Servlet/index.html index 2ea4ecaa8d..df94a43774 100644 --- a/categories/Spring/Servlet/index.html +++ b/categories/Spring/Servlet/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Spring/index.html b/categories/Spring/index.html index 1a54edfacc..10e7c67525 100644 --- a/categories/Spring/index.html +++ b/categories/Spring/index.html @@ -350,7 +350,7 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/Thread-dump/index.html b/categories/Thread-dump/index.html index 8fb8225eb8..714deafc16 100644 --- a/categories/Thread-dump/index.html +++ b/categories/Thread-dump/index.html @@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/data-analysis/index.html b/categories/data-analysis/index.html index 5aa6d8b359..c36946beb3 100644 --- a/categories/data-analysis/index.html +++ b/categories/data-analysis/index.html @@ -330,7 +330,7 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/docker/index.html b/categories/docker/index.html index 7eb4af0dd6..b11cd52349 100644 --- a/categories/docker/index.html +++ b/categories/docker/index.html @@ -29,7 +29,7 @@ - + @@ -40,7 +40,7 @@ - + - Category: docker | Nicksxs's Blog + Category: Docker | Nicksxs's Blog - - - - - - -ocity/velocity.min.js"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Category: leetcode | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

What hurts more, the pain of hard work or the pain of regret?

+
+ + +
+ + + + + + + + + +
+
+ + +
+ + 0% +
+ + + + +
+
+
+ + +
+ + + + + +
+
+
+

leetcode + Category +

+
+ + +
+ 2014 +
+ + + +
+
+ + + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/categories/linked-list/index.html b/categories/linked-list/index.html index a893a8a5cc..f5c6d155bf 100644 --- a/categories/linked-list/index.html +++ b/categories/linked-list/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/nginx/index.html b/categories/nginx/index.html index 79152fb63f..34130f7d10 100644 --- a/categories/nginx/index.html +++ b/categories/nginx/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/php/icu4c/index.html b/categories/php/icu4c/index.html index 7dd13c66cc..4acc02d532 100644 --- a/categories/php/icu4c/index.html +++ b/categories/php/icu4c/index.html @@ -310,7 +310,7 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/php/index.html b/categories/php/index.html index f8a3ec0466..9d3b01bca2 100644 --- a/categories/php/index.html +++ b/categories/php/index.html @@ -29,7 +29,7 @@ - + @@ -40,7 +40,7 @@ - + - Category: php | Nicksxs's Blog + Category: PHP | Nicksxs's Blog + + + + + + +/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

What hurts more, the pain of hard work or the pain of regret?

+
+ + +
+ + + + + + + + + +
+
+ + +
+ + 0% +
+ + + + +
+
+
+ + +
+ + + + +
+ + + + + +
+

+ + +

+ + +
+ + + + +
+ + +

在工作中碰到的一点C++指针上的一点小问题


+

在C++中,应该是从C语言就开始了,除了void型指针之外都是需要有分配对应的内存才可以使用,同时mallocfree成对使用,newdelete成对使用,否则造成内存泄漏。

+ + +
+ + + + + + +
+
+
+
+ + + + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/page/2/index.html b/page/2/index.html index 2bbd13bc45..3b35f151ac 100644 --- a/page/2/index.html +++ b/page/2/index.html @@ -204,7 +204,7 @@
- +