diff --git a/2014/12/23/my-new-post/index.html b/2014/12/23/my-new-post/index.html index f789020864..7d03191620 100644 --- a/2014/12/23/my-new-post/index.html +++ b/2014/12/23/my-new-post/index.html @@ -428,20 +428,20 @@
- 72 + 73 posts
- 83 + 86 categories
- 114 + 117 tags
@@ -466,7 +466,7 @@
- +
diff --git a/2014/12/24/MFC 模态对话框/index.html b/2014/12/24/MFC 模态对话框/index.html index 78ef20ffc7..bdefe8e42e 100644 --- a/2014/12/24/MFC 模态对话框/index.html +++ b/2014/12/24/MFC 模态对话框/index.html @@ -303,15 +303,15 @@ - +
@@ -451,20 +451,20 @@
- 72 + 73 posts
- 83 + 86 categories
- 114 + 117 tags
@@ -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 cc483c2d20..bec0be9c3f 100644 --- a/2014/12/30/Clone-Graph-Part-I/index.html +++ b/2014/12/30/Clone-Graph-Part-I/index.html @@ -300,7 +300,7 @@ @@ -454,20 +454,20 @@
- 72 + 73 posts
- 83 + 86 categories
- 114 + 117 tags
@@ -492,7 +492,7 @@
- +
diff --git a/2015/01/04/Path-Sum/index.html b/2015/01/04/Path-Sum/index.html index 690c9ba1f7..55a4ef9444 100644 --- a/2015/01/04/Path-Sum/index.html +++ b/2015/01/04/Path-Sum/index.html @@ -308,13 +308,13 @@ @@ -456,20 +456,20 @@
- 72 + 73 posts
- 83 + 86 categories
- 114 + 117 tags
@@ -494,7 +494,7 @@
- +
diff --git a/2015/01/14/Two-Sum/index.html b/2015/01/14/Two-Sum/index.html index 7f19cc26bb..d9de51afa4 100644 --- a/2015/01/14/Two-Sum/index.html +++ b/2015/01/14/Two-Sum/index.html @@ -303,19 +303,19 @@ @@ -457,20 +457,20 @@
- 72 + 73 posts
- 83 + 86 categories
- 114 + 117 tags
@@ -495,7 +495,7 @@
- +
diff --git a/2015/01/16/pcre-intro-and-a-simple-package/index.html b/2015/01/16/pcre-intro-and-a-simple-package/index.html index f44b2bf18f..c088726eea 100644 --- a/2015/01/16/pcre-intro-and-a-simple-package/index.html +++ b/2015/01/16/pcre-intro-and-a-simple-package/index.html @@ -318,10 +318,7 @@ - +
@@ -469,20 +469,20 @@ @@ -507,7 +507,7 @@
- +
diff --git a/2015/03/11/Number-Of-1-Bits/index.html b/2015/03/11/Number-Of-1-Bits/index.html index d16d2a795f..7ef72f6c63 100644 --- a/2015/03/11/Number-Of-1-Bits/index.html +++ b/2015/03/11/Number-Of-1-Bits/index.html @@ -305,13 +305,13 @@ @@ -453,20 +453,20 @@ @@ -491,7 +491,7 @@
- +
diff --git a/2015/03/11/Reverse-Bits/index.html b/2015/03/11/Reverse-Bits/index.html index b485788c5b..0bd0acfd7f 100644 --- a/2015/03/11/Reverse-Bits/index.html +++ b/2015/03/11/Reverse-Bits/index.html @@ -306,13 +306,13 @@ @@ -454,20 +454,20 @@ @@ -492,7 +492,7 @@
- +
diff --git a/2015/03/13/Reverse-Integer/index.html b/2015/03/13/Reverse-Integer/index.html index 8987cd70ad..e8d6edb689 100644 --- a/2015/03/13/Reverse-Integer/index.html +++ b/2015/03/13/Reverse-Integer/index.html @@ -303,19 +303,19 @@ @@ -457,20 +457,20 @@ @@ -495,7 +495,7 @@
- +
diff --git a/2015/04/14/Add-Two-Number/index.html b/2015/04/14/Add-Two-Number/index.html index c1d0d3ad45..54f56c13f5 100644 --- a/2015/04/14/Add-Two-Number/index.html +++ b/2015/04/14/Add-Two-Number/index.html @@ -309,13 +309,13 @@ @@ -457,20 +457,20 @@ @@ -495,7 +495,7 @@
- +
diff --git a/2015/04/15/Leetcode-No-3/index.html b/2015/04/15/Leetcode-No-3/index.html index e753f434b8..72a8a7b919 100644 --- a/2015/04/15/Leetcode-No-3/index.html +++ b/2015/04/15/Leetcode-No-3/index.html @@ -300,7 +300,7 @@ @@ -455,20 +455,20 @@ @@ -493,7 +493,7 @@
- +
diff --git a/2016/08/14/docker-mysql-cluster/index.html b/2016/08/14/docker-mysql-cluster/index.html index 1c173ba178..375b105237 100644 --- a/2016/08/14/docker-mysql-cluster/index.html +++ b/2016/08/14/docker-mysql-cluster/index.html @@ -305,10 +305,10 @@ @@ -467,20 +467,20 @@ @@ -505,7 +505,7 @@
- +
diff --git a/2020/02/09/G1收集器概述/index.html b/2020/02/09/G1收集器概述/index.html index 11f29cd3a7..4269d3fbf9 100644 --- a/2020/02/09/G1收集器概述/index.html +++ b/2020/02/09/G1收集器概述/index.html @@ -473,20 +473,20 @@ @@ -511,7 +511,7 @@
- +
diff --git a/2020/02/16/Maven实用小技巧/index.html b/2020/02/16/Maven实用小技巧/index.html index a27aac8017..e253aeba6e 100644 --- a/2020/02/16/Maven实用小技巧/index.html +++ b/2020/02/16/Maven实用小技巧/index.html @@ -472,20 +472,20 @@ @@ -510,7 +510,7 @@
- +
diff --git a/2020/02/22/gogs使用webhook部署react单页应用/index.html b/2020/02/22/gogs使用webhook部署react单页应用/index.html index d2372b093e..0cc1a20539 100644 --- a/2020/02/22/gogs使用webhook部署react单页应用/index.html +++ b/2020/02/22/gogs使用webhook部署react单页应用/index.html @@ -453,20 +453,20 @@ @@ -491,7 +491,7 @@
- +
diff --git a/2020/03/01/寄生虫观后感/index.html b/2020/03/01/寄生虫观后感/index.html index aa76608a0b..624ae7f9e7 100644 --- a/2020/03/01/寄生虫观后感/index.html +++ b/2020/03/01/寄生虫观后感/index.html @@ -304,19 +304,19 @@ @@ -458,20 +458,20 @@ @@ -496,7 +496,7 @@
- +
diff --git a/2020/03/08/docker比一般多一点的初学者介绍/index.html b/2020/03/08/docker比一般多一点的初学者介绍/index.html index c5f92dcff4..834da4ef92 100644 --- a/2020/03/08/docker比一般多一点的初学者介绍/index.html +++ b/2020/03/08/docker比一般多一点的初学者介绍/index.html @@ -498,20 +498,20 @@ @@ -536,7 +536,7 @@
- +
diff --git a/2020/03/15/docker比一般多一点的初学者介绍二/index.html b/2020/03/15/docker比一般多一点的初学者介绍二/index.html index 4dc22c2b72..a2a9d0d02e 100644 --- a/2020/03/15/docker比一般多一点的初学者介绍二/index.html +++ b/2020/03/15/docker比一般多一点的初学者介绍二/index.html @@ -472,20 +472,20 @@ @@ -510,7 +510,7 @@
- +
diff --git a/2020/03/21/docker比一般多一点的初学者介绍三/index.html b/2020/03/21/docker比一般多一点的初学者介绍三/index.html index 7611be5c77..8b2e77c4b0 100644 --- a/2020/03/21/docker比一般多一点的初学者介绍三/index.html +++ b/2020/03/21/docker比一般多一点的初学者介绍三/index.html @@ -474,20 +474,20 @@ @@ -512,7 +512,7 @@
- +
diff --git a/2020/03/29/echo命令的一个小技巧/index.html b/2020/03/29/echo命令的一个小技巧/index.html index 74fcc44a6b..33f2f178f1 100644 --- a/2020/03/29/echo命令的一个小技巧/index.html +++ b/2020/03/29/echo命令的一个小技巧/index.html @@ -248,11 +248,11 @@ , - + , - + , @@ -467,20 +467,20 @@ @@ -505,7 +505,7 @@
- +
diff --git a/2020/04/05/Comparator使用小记/index.html b/2020/04/05/Comparator使用小记/index.html index e71a2d6720..f2a08c2215 100644 --- a/2020/04/05/Comparator使用小记/index.html +++ b/2020/04/05/Comparator使用小记/index.html @@ -475,20 +475,20 @@ @@ -513,7 +513,7 @@
- +
diff --git a/2020/04/12/redis系列介绍七/index.html b/2020/04/12/redis系列介绍七/index.html index 69865c147a..e7fdcf4acf 100644 --- a/2020/04/12/redis系列介绍七/index.html +++ b/2020/04/12/redis系列介绍七/index.html @@ -245,19 +245,19 @@
, - + , - + , - + , - + @@ -326,10 +326,10 @@
-
+
+
@@ -459,20 +462,20 @@
- 72 + 73 posts
- 83 + 86 categories
- 114 + 117 tags
@@ -497,7 +500,7 @@
- +
diff --git a/2020/10/25/Leetcode-104-二叉树的最大深度-Maximum-Depth-of-Binary-Tree-题解分析/index.html b/2020/10/25/Leetcode-104-二叉树的最大深度-Maximum-Depth-of-Binary-Tree-题解分析/index.html new file mode 100644 index 0000000000..015010d569 --- /dev/null +++ b/2020/10/25/Leetcode-104-二叉树的最大深度-Maximum-Depth-of-Binary-Tree-题解分析/index.html @@ -0,0 +1,789 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Leetcode 104 二叉树的最大深度(Maximum Depth of Binary Tree) 题解分析 | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

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

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

+ Leetcode 104 二叉树的最大深度(Maximum Depth of Binary Tree) 题解分析 +

+ + +
+ + + + +
+ + +

题目介绍

给定一个二叉树,找出其最大深度。

+

二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。

+

说明: 叶子节点是指没有子节点的节点。

+

示例:
给定二叉树 [3,9,20,null,null,15,7],

+
1
2
3
4
5
  3
/ \
9 20
/ \
15 7
+

返回它的最大深度 3 。

+

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 主体是个递归的应用
public int maxDepth(TreeNode root) {
// 节点的退出条件之一
if (root == null) {
return 0;
}
int left = 0;
int right = 0;
// 存在左子树,就递归左子树
if (root.left != null) {
left = maxDepth(root.left);
}
// 存在右子树,就递归右子树
if (root.right != null) {
right = maxDepth(root.right);
}
// 前面返回后,左右取大者
return Math.max(left + 1, right + 1);
}
+

分析

其实对于树这类题,一般是以递归形式比较方便,只是要注意退出条件

+ +
+ + + + + + + + +
+
请我喝杯咖啡
+ + +
+ + + +
+ +
+ + + + +
+ + + + + + +
+ + +
+
+ +
+
+ + + + +
+ + + + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/404.html b/404.html index 412f3b6507..a73237e6b7 100644 --- a/404.html +++ b/404.html @@ -320,20 +320,20 @@
- 72 + 73 posts
- 83 + 86 categories
- 114 + 117 tags
@@ -358,7 +358,7 @@
- +
diff --git a/404/index.html b/404/index.html index 1e77b7b2ab..0fa4a426db 100644 --- a/404/index.html +++ b/404/index.html @@ -307,20 +307,20 @@
- 72 + 73 posts
- 83 + 86 categories
- 114 + 117 tags
@@ -345,7 +345,7 @@
- +
diff --git a/archives/2014/12/index.html b/archives/2014/12/index.html index 6d853ff89a..55e0ea253c 100644 --- a/archives/2014/12/index.html +++ b/archives/2014/12/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -350,20 +350,20 @@
- 72 + 73 posts
- 83 + 86 categories
- 114 + 117 tags
@@ -388,7 +388,7 @@
- +
diff --git a/archives/2014/index.html b/archives/2014/index.html index c481a0526d..fad52b3325 100644 --- a/archives/2014/index.html +++ b/archives/2014/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/archives/2015/01/index.html b/archives/2015/01/index.html index c416b1ac25..f5554c7fe2 100644 --- a/archives/2015/01/index.html +++ b/archives/2015/01/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/archives/2015/03/index.html b/archives/2015/03/index.html index e98a1ffdea..c37ce1b8f8 100644 --- a/archives/2015/03/index.html +++ b/archives/2015/03/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/archives/2015/04/index.html b/archives/2015/04/index.html index 6d6c811bd1..458aac9b34 100644 --- a/archives/2015/04/index.html +++ b/archives/2015/04/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/archives/2015/06/index.html b/archives/2015/06/index.html index 861659c4c7..c03c09fec9 100644 --- a/archives/2015/06/index.html +++ b/archives/2015/06/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2015/index.html b/archives/2015/index.html index bd2558f237..01f64f282c 100644 --- a/archives/2015/index.html +++ b/archives/2015/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -470,20 +470,20 @@ @@ -508,7 +508,7 @@
- +
diff --git a/archives/2016/07/index.html b/archives/2016/07/index.html index 75749e9b21..5d87e21218 100644 --- a/archives/2016/07/index.html +++ b/archives/2016/07/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2016/08/index.html b/archives/2016/08/index.html index 51364a7154..1441531509 100644 --- a/archives/2016/08/index.html +++ b/archives/2016/08/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/archives/2016/09/index.html b/archives/2016/09/index.html index 7c6785c025..137253fb12 100644 --- a/archives/2016/09/index.html +++ b/archives/2016/09/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2016/10/index.html b/archives/2016/10/index.html index 724f0a549e..a55338d5c0 100644 --- a/archives/2016/10/index.html +++ b/archives/2016/10/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/archives/2016/11/index.html b/archives/2016/11/index.html index cf02377536..cba22aeca6 100644 --- a/archives/2016/11/index.html +++ b/archives/2016/11/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2016/index.html b/archives/2016/index.html index da6a62880c..3cba41cd92 100644 --- a/archives/2016/index.html +++ b/archives/2016/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -430,20 +430,20 @@ @@ -468,7 +468,7 @@
- +
diff --git a/archives/2017/03/index.html b/archives/2017/03/index.html index a1306f63a8..5a54e8c7e4 100644 --- a/archives/2017/03/index.html +++ b/archives/2017/03/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2017/04/index.html b/archives/2017/04/index.html index c577c5712d..03fe4b0ca8 100644 --- a/archives/2017/04/index.html +++ b/archives/2017/04/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2017/05/index.html b/archives/2017/05/index.html index 8f533ead16..a6bb9938bb 100644 --- a/archives/2017/05/index.html +++ b/archives/2017/05/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2017/index.html b/archives/2017/index.html index cf0a32e843..b52e24ef54 100644 --- a/archives/2017/index.html +++ b/archives/2017/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/archives/2019/06/index.html b/archives/2019/06/index.html index 6e7eaac755..3fd6e6d3d3 100644 --- a/archives/2019/06/index.html +++ b/archives/2019/06/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2019/09/index.html b/archives/2019/09/index.html index f2f762947e..37a97cee9f 100644 --- a/archives/2019/09/index.html +++ b/archives/2019/09/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/archives/2019/12/index.html b/archives/2019/12/index.html index e870bcfba7..c0d0a2c075 100644 --- a/archives/2019/12/index.html +++ b/archives/2019/12/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -390,20 +390,20 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2019/index.html b/archives/2019/index.html index cc85854ca5..a1ad0e418f 100644 --- a/archives/2019/index.html +++ b/archives/2019/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -430,20 +430,20 @@ @@ -468,7 +468,7 @@
- +
diff --git a/archives/2020/01/index.html b/archives/2020/01/index.html index d8a1f5251d..18c75f46d1 100644 --- a/archives/2020/01/index.html +++ b/archives/2020/01/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -390,20 +390,20 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/02/index.html b/archives/2020/02/index.html index 8574b677f2..38c87dfa7b 100644 --- a/archives/2020/02/index.html +++ b/archives/2020/02/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/03/index.html b/archives/2020/03/index.html index 35a1902c9f..b798c2bf77 100644 --- a/archives/2020/03/index.html +++ b/archives/2020/03/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -390,20 +390,20 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/04/index.html b/archives/2020/04/index.html index 71d35ff3b9..d86daea705 100644 --- a/archives/2020/04/index.html +++ b/archives/2020/04/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/05/index.html b/archives/2020/05/index.html index 1e1bf379ae..ac32472373 100644 --- a/archives/2020/05/index.html +++ b/archives/2020/05/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -390,20 +390,20 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/06/index.html b/archives/2020/06/index.html index a2bdfefca5..233a6f7f4d 100644 --- a/archives/2020/06/index.html +++ b/archives/2020/06/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/07/index.html b/archives/2020/07/index.html index 8d8a34ac28..2f636dff8b 100644 --- a/archives/2020/07/index.html +++ b/archives/2020/07/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/08/index.html b/archives/2020/08/index.html index 1c2b47d5d4..f586e64b92 100644 --- a/archives/2020/08/index.html +++ b/archives/2020/08/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -390,20 +390,20 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/09/index.html b/archives/2020/09/index.html index 6d153371a8..7d00becc4e 100644 --- a/archives/2020/09/index.html +++ b/archives/2020/09/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/10/index.html b/archives/2020/10/index.html index 05bfc786ff..fdc967c1b1 100644 --- a/archives/2020/10/index.html +++ b/archives/2020/10/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -350,20 +370,20 @@ @@ -388,7 +408,7 @@
- +
diff --git a/archives/2020/index.html b/archives/2020/index.html index 9c8ca730e2..5585cff00a 100644 --- a/archives/2020/index.html +++ b/archives/2020/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/2020/page/2/index.html b/archives/2020/page/2/index.html index 4117768e39..23b9708c50 100644 --- a/archives/2020/page/2/index.html +++ b/archives/2020/page/2/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/2020/page/3/index.html b/archives/2020/page/3/index.html index 9dbe9c2cb6..e83d1ca7b5 100644 --- a/archives/2020/page/3/index.html +++ b/archives/2020/page/3/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/2020/page/4/index.html b/archives/2020/page/4/index.html index 8db4c73030..44cfe9493c 100644 --- a/archives/2020/page/4/index.html +++ b/archives/2020/page/4/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/2020/page/5/index.html b/archives/2020/page/5/index.html index e32a1f6163..69d0745e4c 100644 --- a/archives/2020/page/5/index.html +++ b/archives/2020/page/5/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -353,20 +373,20 @@ @@ -391,7 +411,7 @@
- +
diff --git a/archives/index.html b/archives/index.html index 60559fe4ba..ac20dd7d30 100644 --- a/archives/index.html +++ b/archives/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/page/2/index.html b/archives/page/2/index.html index 5b4c58fb9e..5005795025 100644 --- a/archives/page/2/index.html +++ b/archives/page/2/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/page/3/index.html b/archives/page/3/index.html index f3611974f3..1a2a49882c 100644 --- a/archives/page/3/index.html +++ b/archives/page/3/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/page/4/index.html b/archives/page/4/index.html index 10ec43d935..6707cf8947 100644 --- a/archives/page/4/index.html +++ b/archives/page/4/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -396,26 +416,6 @@
- -
@@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/archives/page/5/index.html b/archives/page/5/index.html index f37c6dde73..433e68d543 100644 --- a/archives/page/5/index.html +++ b/archives/page/5/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -399,26 +419,6 @@
- -
@@ -496,20 +496,20 @@ @@ -534,7 +534,7 @@
- +
diff --git a/archives/page/6/index.html b/archives/page/6/index.html index abbc3c7d88..3da0f83568 100644 --- a/archives/page/6/index.html +++ b/archives/page/6/index.html @@ -208,10 +208,33 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
+
+ 2019 +
+ +
2017
@@ -399,26 +422,6 @@ - -
@@ -496,20 +499,20 @@ @@ -534,7 +537,7 @@
- +
diff --git a/archives/page/7/index.html b/archives/page/7/index.html index b07b4bb7e7..ae8b1f44b4 100644 --- a/archives/page/7/index.html +++ b/archives/page/7/index.html @@ -208,10 +208,33 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
+
+ 2016 +
+ +
2015
@@ -395,29 +418,6 @@ -
- 2014 -
- -
@@ -496,20 +496,20 @@ @@ -534,7 +534,7 @@
- +
diff --git a/archives/page/8/index.html b/archives/page/8/index.html index f6dff38e2c..cb8b5b0fd9 100644 --- a/archives/page/8/index.html +++ b/archives/page/8/index.html @@ -208,7 +208,7 @@
- Nice! 72 posts in total. Keep on posting. + Nice! 73 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2014
+ +
@@ -333,20 +353,20 @@ @@ -371,7 +391,7 @@
- +
diff --git a/atom.xml b/atom.xml index 77c7a980b0..00d05c431c 100644 --- a/atom.xml +++ b/atom.xml @@ -6,7 +6,7 @@ - 2020-10-18T15:15:50.458Z + 2020-10-25T15:43:29.574Z https://nicksxs.me/ @@ -16,6 +16,53 @@ Hexo + + Leetcode 104 二叉树的最大深度(Maximum Depth of Binary Tree) 题解分析 + + https://nicksxs.me/2020/10/25/Leetcode-104-%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E6%9C%80%E5%A4%A7%E6%B7%B1%E5%BA%A6-Maximum-Depth-of-Binary-Tree-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ + 2020-10-25T15:43:29.000Z + 2020-10-25T15:43:29.574Z + + + + + + + + <h2 id="题目介绍"><a href="#题目介绍" class="headerlink" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 在老丈人家的小工记五 @@ -212,10 +259,10 @@ - - + + @@ -223,10 +270,10 @@ - - + + @@ -840,49 +887,4 @@ - - 聊聊 Dubbo 的 SPI 续之自适应拓展 - - https://nicksxs.me/2020/06/06/%E8%81%8A%E8%81%8A-Dubbo-%E7%9A%84-SPI-%E7%BB%AD%E4%B9%8B%E8%87%AA%E9%80%82%E5%BA%94%E6%8B%93%E5%B1%95/ - 2020-06-06T14:39:38.000Z - 2020-06-06T14:48:09.324Z - - - - - - - - <h2 id="Adaptive"><a href="#Adaptive" class="headerlink" title="Adaptive"></a>Adaptive</h2><p>这个应该是 Dubbo SPI - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/baidu_verify_Gl8jtoDV4z.html b/baidu_verify_Gl8jtoDV4z.html index 9071d53514..cc811627bc 100644 --- a/baidu_verify_Gl8jtoDV4z.html +++ b/baidu_verify_Gl8jtoDV4z.html @@ -309,20 +309,20 @@ @@ -347,7 +347,7 @@
- +
diff --git a/baidusitemap.xml b/baidusitemap.xml index 2e51796e5e..3aaa409461 100644 --- a/baidusitemap.xml +++ b/baidusitemap.xml @@ -1,6 +1,9 @@ + https://nicksxs.me/2020/10/25/Leetcode-104-%E4%BA%8C%E5%8F%89%E6%A0%91%E7%9A%84%E6%9C%80%E5%A4%A7%E6%B7%B1%E5%BA%A6-Maximum-Depth-of-Binary-Tree-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ + 2020-10-25 + https://nicksxs.me/2020/10/18/%E5%9C%A8%E8%80%81%E4%B8%88%E4%BA%BA%E5%AE%B6%E7%9A%84%E5%B0%8F%E5%B7%A5%E8%AE%B0%E4%BA%94/ 2020-10-18 @@ -124,10 +127,10 @@ 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/2019/12/10/Redis-Part-1/ + https://nicksxs.me/2015/01/14/Two-Sum/ 2020-01-12 - https://nicksxs.me/2015/01/14/Two-Sum/ + https://nicksxs.me/2019/12/10/Redis-Part-1/ 2020-01-12 https://nicksxs.me/2016/11/10/php-abstract-class-and-interface/ @@ -144,18 +147,18 @@ https://nicksxs.me/2015/03/13/Reverse-Integer/ 2020-01-12 - - https://nicksxs.me/2016/08/14/docker-mysql-cluster/ - 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/ 2020-01-12 - https://nicksxs.me/2017/05/09/ambari-summary/ + https://nicksxs.me/2016/08/14/docker-mysql-cluster/ 2020-01-12 https://nicksxs.me/2019/06/18/openresty/ 2020-01-12 + + https://nicksxs.me/2017/05/09/ambari-summary/ + 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/ 2020-01-12 @@ -172,10 +175,10 @@ 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/2014/12/23/my-new-post/ + https://nicksxs.me/2017/03/28/spark-little-tips/ 2020-01-12 - https://nicksxs.me/2017/03/28/spark-little-tips/ + https://nicksxs.me/2014/12/23/my-new-post/ 2020-01-12 https://nicksxs.me/2014/12/30/Clone-Graph-Part-I/ @@ -190,10 +193,10 @@ https://nicksxs.me/2015/06/22/invert-binary-tree/ 2020-01-12 - https://nicksxs.me/2017/04/25/rabbitmq-tips/ + https://nicksxs.me/2015/01/04/Path-Sum/ 2020-01-12 - https://nicksxs.me/2015/01/04/Path-Sum/ + https://nicksxs.me/2017/04/25/rabbitmq-tips/ 2020-01-12 https://nicksxs.me/2015/03/11/Number-Of-1-Bits/ diff --git a/categories/Binary-Tree/index.html b/categories/Binary-Tree/index.html new file mode 100644 index 0000000000..01cf971268 --- /dev/null +++ b/categories/Binary-Tree/index.html @@ -0,0 +1,604 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Category: Binary Tree | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

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

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

Binary Tree + Category +

+
+ + +
+ 2020 +
+ + + +
+
+ + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/categories/C/Mysql/index.html b/categories/C/Mysql/index.html index 9ca0ff2da2..5a59684a28 100644 --- a/categories/C/Mysql/index.html +++ b/categories/C/Mysql/index.html @@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/C/Redis/index.html b/categories/C/Redis/index.html index 23d6f5baee..ef7fb40a85 100644 --- a/categories/C/Redis/index.html +++ b/categories/C/Redis/index.html @@ -473,20 +473,20 @@ @@ -511,7 +511,7 @@
- +
diff --git a/categories/C/index.html b/categories/C/index.html index 728f5ad1c7..224b073c35 100644 --- a/categories/C/index.html +++ b/categories/C/index.html @@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/categories/C/page/2/index.html b/categories/C/page/2/index.html index 8b4f74dd65..310ecaffb9 100644 --- a/categories/C/page/2/index.html +++ b/categories/C/page/2/index.html @@ -333,20 +333,20 @@ @@ -371,7 +371,7 @@
- +
diff --git a/categories/Dubbo-RPC-SPI/index.html b/categories/Dubbo-RPC-SPI/index.html index ac9ec5e476..ddec209fce 100644 --- a/categories/Dubbo-RPC-SPI/index.html +++ b/categories/Dubbo-RPC-SPI/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Dubbo/SPI/Adaptive/index.html b/categories/Dubbo/SPI/Adaptive/index.html index ed91853728..50dc343402 100644 --- a/categories/Dubbo/SPI/Adaptive/index.html +++ b/categories/Dubbo/SPI/Adaptive/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Dubbo/SPI/index.html b/categories/Dubbo/SPI/index.html index 92399557c9..e8169f24e4 100644 --- a/categories/Dubbo/SPI/index.html +++ b/categories/Dubbo/SPI/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Dubbo/index.html b/categories/Dubbo/index.html index 95c842897a..995d8935a2 100644 --- a/categories/Dubbo/index.html +++ b/categories/Dubbo/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Filter/index.html b/categories/Filter/index.html index 282c50ab1c..4a69282e90 100644 --- a/categories/Filter/index.html +++ b/categories/Filter/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Interceptor-AOP/index.html b/categories/Interceptor-AOP/index.html index 581f65ef53..8230a51cac 100644 --- a/categories/Interceptor-AOP/index.html +++ b/categories/Interceptor-AOP/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/Design-Patterns/index.html b/categories/Java/Design-Patterns/index.html index 058b735b25..59382ce712 100644 --- a/categories/Java/Design-Patterns/index.html +++ b/categories/Java/Design-Patterns/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/GC/index.html b/categories/Java/GC/index.html index cef496b3f1..f7d2e57052 100644 --- a/categories/Java/GC/index.html +++ b/categories/Java/GC/index.html @@ -333,20 +333,20 @@ @@ -371,7 +371,7 @@
- +
diff --git a/categories/Java/JVM/index.html b/categories/Java/JVM/index.html index fc37d6e481..4ee6baeda2 100644 --- a/categories/Java/JVM/index.html +++ b/categories/Java/JVM/index.html @@ -333,20 +333,20 @@ @@ -371,7 +371,7 @@
- +
diff --git a/categories/Java/Maven/index.html b/categories/Java/Maven/index.html index 45df82f2b5..f985a308ce 100644 --- a/categories/Java/Maven/index.html +++ b/categories/Java/Maven/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/Mybatis/index.html b/categories/Java/Mybatis/index.html index 49472bcd55..4ff2475b0c 100644 --- a/categories/Java/Mybatis/index.html +++ b/categories/Java/Mybatis/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Java/Singleton/index.html b/categories/Java/Singleton/index.html index b1bd44e6d9..d71145d648 100644 --- a/categories/Java/Singleton/index.html +++ b/categories/Java/Singleton/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/index.html b/categories/Java/index.html index 71bc249285..93d72e1843 100644 --- a/categories/Java/index.html +++ b/categories/Java/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
@@ -602,7 +602,11 @@ -ews"> +te_pv" style="display: none;"> + + diff --git a/categories/Java/page/2/index.html b/categories/Java/page/2/index.html index d5fc425ad8..1979bce712 100644 --- a/categories/Java/page/2/index.html +++ b/categories/Java/page/2/index.html @@ -217,6 +217,26 @@ 2020
+ +
@@ -376,20 +396,20 @@ @@ -414,7 +434,7 @@
- +
diff --git a/categories/Java/集合/index.html b/categories/Java/集合/index.html index 4c03b619d8..2ddd5de980 100644 --- a/categories/Java/集合/index.html +++ b/categories/Java/集合/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Linux/index.html b/categories/Linux/index.html index b1cc4c6786..fbf6775622 100644 --- a/categories/Linux/index.html +++ b/categories/Linux/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Linux/命令/echo/index.html b/categories/Linux/命令/echo/index.html index 0f9a9fb33e..bfa7d98e83 100644 --- a/categories/Linux/命令/echo/index.html +++ b/categories/Linux/命令/echo/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Linux/命令/grep/index.html b/categories/Linux/命令/grep/index.html index 7a12234286..23a84f1181 100644 --- a/categories/Linux/命令/grep/index.html +++ b/categories/Linux/命令/grep/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Linux/命令/index.html b/categories/Linux/命令/index.html index 58b0d7dadd..747e7562a7 100644 --- a/categories/Linux/命令/index.html +++ b/categories/Linux/命令/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/MQ/index.html b/categories/MQ/index.html index 37f696e26f..3244c1d8b4 100644 --- a/categories/MQ/index.html +++ b/categories/MQ/index.html @@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/Mac/Homebrew/index.html b/categories/Mac/Homebrew/index.html index c8d189cbae..f9158f3a23 100644 --- a/categories/Mac/Homebrew/index.html +++ b/categories/Mac/Homebrew/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mac/index.html b/categories/Mac/index.html index c9f0728bd5..07194cbb13 100644 --- a/categories/Mac/index.html +++ b/categories/Mac/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mybatis/index.html b/categories/Mybatis/index.html index a5b5363266..2be1e02abb 100644 --- a/categories/Mybatis/index.html +++ b/categories/Mybatis/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mybatis/缓存/index.html b/categories/Mybatis/缓存/index.html index 6fd625f714..f3e35241e7 100644 --- a/categories/Mybatis/缓存/index.html +++ b/categories/Mybatis/缓存/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mysql/Sql注入/index.html b/categories/Mysql/Sql注入/index.html index 52989c346f..2d5762debf 100644 --- a/categories/Mysql/Sql注入/index.html +++ b/categories/Mysql/Sql注入/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Mysql/index.html b/categories/Mysql/index.html index 6141978fc7..ac26cad6d9 100644 --- a/categories/Mysql/index.html +++ b/categories/Mysql/index.html @@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/Mysql/数据结构/index.html b/categories/Mysql/数据结构/index.html index 13e341c9dd..ff74338415 100644 --- a/categories/Mysql/数据结构/index.html +++ b/categories/Mysql/数据结构/index.html @@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/Mysql/源码/index.html b/categories/Mysql/源码/index.html index 8a33fc8a55..24c7a9f8e2 100644 --- a/categories/Mysql/源码/index.html +++ b/categories/Mysql/源码/index.html @@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/Redis/Distributed-Lock/index.html b/categories/Redis/Distributed-Lock/index.html index 565fb7dbdd..2872556a31 100644 --- a/categories/Redis/Distributed-Lock/index.html +++ b/categories/Redis/Distributed-Lock/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Redis/index.html b/categories/Redis/index.html index 2fbc7fcad5..67c0a492e2 100644 --- a/categories/Redis/index.html +++ b/categories/Redis/index.html @@ -473,20 +473,20 @@ @@ -511,7 +511,7 @@
- +
diff --git a/categories/Redis/数据结构/index.html b/categories/Redis/数据结构/index.html index 07aabcba33..1951f9c239 100644 --- a/categories/Redis/数据结构/index.html +++ b/categories/Redis/数据结构/index.html @@ -453,20 +453,20 @@ @@ -491,7 +491,7 @@
- +
diff --git a/categories/Redis/源码/index.html b/categories/Redis/源码/index.html index cef19bd963..bb06a610a3 100644 --- a/categories/Redis/源码/index.html +++ b/categories/Redis/源码/index.html @@ -453,20 +453,20 @@ @@ -491,7 +491,7 @@
- +
diff --git a/categories/RocketMQ/index.html b/categories/RocketMQ/index.html index 67c3c20cd3..ec72efdcc0 100644 --- a/categories/RocketMQ/index.html +++ b/categories/RocketMQ/index.html @@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/Spring/Mybatis/index.html b/categories/Spring/Mybatis/index.html index 96194bdc1d..39727fe9c0 100644 --- a/categories/Spring/Mybatis/index.html +++ b/categories/Spring/Mybatis/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/Spring/Servlet/Interceptor/AOP/index.html b/categories/Spring/Servlet/Interceptor/AOP/index.html index 9dd1c92a54..9f7f513793 100644 --- a/categories/Spring/Servlet/Interceptor/AOP/index.html +++ b/categories/Spring/Servlet/Interceptor/AOP/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Spring/Servlet/Interceptor/index.html b/categories/Spring/Servlet/Interceptor/index.html index f9e7c07bd7..95ac2907dd 100644 --- a/categories/Spring/Servlet/Interceptor/index.html +++ b/categories/Spring/Servlet/Interceptor/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Spring/Servlet/index.html b/categories/Spring/Servlet/index.html index 3811f56f01..5d442097d5 100644 --- a/categories/Spring/Servlet/index.html +++ b/categories/Spring/Servlet/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Spring/index.html b/categories/Spring/index.html index a642ed0512..3d0a087df2 100644 --- a/categories/Spring/index.html +++ b/categories/Spring/index.html @@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/Thread-dump/index.html b/categories/Thread-dump/index.html index c069495cc0..2c493670d4 100644 --- a/categories/Thread-dump/index.html +++ b/categories/Thread-dump/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/data-analysis/index.html b/categories/data-analysis/index.html index d11a6d2acf..66fe99615a 100644 --- a/categories/data-analysis/index.html +++ b/categories/data-analysis/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/docker/index.html b/categories/docker/index.html index 65fae9cf3b..69d26539bd 100644 --- a/categories/docker/index.html +++ b/categories/docker/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/docker/介绍/index.html b/categories/docker/介绍/index.html index 5511a8e921..35db39e94f 100644 --- a/categories/docker/介绍/index.html +++ b/categories/docker/介绍/index.html @@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/docker/发行版本/index.html b/categories/docker/发行版本/index.html index 6f987f02ce..8ad5543816 100644 --- a/categories/docker/发行版本/index.html +++ b/categories/docker/发行版本/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/index.html b/categories/index.html index 919e7eecaa..440e64f140 100644 --- a/categories/index.html +++ b/categories/index.html @@ -228,10 +228,10 @@
- 83 categories in total + 86 categories in total
@@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/leetcode/index.html b/categories/leetcode/index.html index 3abb213d4c..8786e18d1e 100644 --- a/categories/leetcode/index.html +++ b/categories/leetcode/index.html @@ -217,6 +217,26 @@ 2020
+ +
@@ -403,26 +423,6 @@
- -
@@ -499,20 +499,20 @@ @@ -537,7 +537,7 @@
- +
diff --git a/categories/leetcode/java/Binary-Tree/DFS/index.html b/categories/leetcode/java/Binary-Tree/DFS/index.html new file mode 100644 index 0000000000..6d96681ed1 --- /dev/null +++ b/categories/leetcode/java/Binary-Tree/DFS/index.html @@ -0,0 +1,604 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Category: DFS | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

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

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

DFS + Category +

+
+ + +
+ 2020 +
+ + + +
+
+ + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/categories/leetcode/java/Binary-Tree/index.html b/categories/leetcode/java/Binary-Tree/index.html new file mode 100644 index 0000000000..9855065aef --- /dev/null +++ b/categories/leetcode/java/Binary-Tree/index.html @@ -0,0 +1,604 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Category: Binary Tree | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

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

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

Binary Tree + Category +

+
+ + +
+ 2020 +
+ + + +
+
+ + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/categories/leetcode/java/index.html b/categories/leetcode/java/index.html index 8a145bffbd..931dfe40da 100644 --- a/categories/leetcode/java/index.html +++ b/categories/leetcode/java/index.html @@ -217,6 +217,26 @@ 2020
+ +
@@ -330,20 +350,20 @@ @@ -368,7 +388,7 @@
- +
diff --git a/categories/leetcode/java/linked-list/index.html b/categories/leetcode/java/linked-list/index.html index 29b3789226..cbbbaba9f5 100644 --- a/categories/leetcode/java/linked-list/index.html +++ b/categories/leetcode/java/linked-list/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/leetcode/java/string/index.html b/categories/leetcode/java/string/index.html index 6fb5cadf71..c5d752c347 100644 --- a/categories/leetcode/java/string/index.html +++ b/categories/leetcode/java/string/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/leetcode/page/2/index.html b/categories/leetcode/page/2/index.html index 60ab13d0af..4b58956200 100644 --- a/categories/leetcode/page/2/index.html +++ b/categories/leetcode/page/2/index.html @@ -217,6 +217,26 @@ 2015
+ +
@@ -396,20 +416,20 @@ @@ -434,7 +454,7 @@
- +
diff --git a/categories/linked-list/index.html b/categories/linked-list/index.html index cf7465dd3e..404f32c932 100644 --- a/categories/linked-list/index.html +++ b/categories/linked-list/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/nginx/index.html b/categories/nginx/index.html index a4d0568726..c23dcc93cb 100644 --- a/categories/nginx/index.html +++ b/categories/nginx/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/php/icu4c/index.html b/categories/php/icu4c/index.html index b9dfe92635..14b92af2e7 100644 --- a/categories/php/icu4c/index.html +++ b/categories/php/icu4c/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/php/index.html b/categories/php/index.html index f4ce7b65d6..b178febae8 100644 --- a/categories/php/index.html +++ b/categories/php/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/中间件/RocketMQ/index.html b/categories/中间件/RocketMQ/index.html index 57032f87a2..4918b11f35 100644 --- a/categories/中间件/RocketMQ/index.html +++ b/categories/中间件/RocketMQ/index.html @@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/中间件/index.html b/categories/中间件/index.html index 245ae01719..1b235aff2b 100644 --- a/categories/中间件/index.html +++ b/categories/中间件/index.html @@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/分布式事务/index.html b/categories/分布式事务/index.html index a8d1f79d49..052f174e81 100644 --- a/categories/分布式事务/index.html +++ b/categories/分布式事务/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/分布式事务/三阶段提交/index.html b/categories/分布式事务/三阶段提交/index.html index da3e6678c1..d63e3eb8cd 100644 --- a/categories/分布式事务/三阶段提交/index.html +++ b/categories/分布式事务/三阶段提交/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/分布式事务/两阶段提交/index.html b/categories/分布式事务/两阶段提交/index.html index 6ea132cbd2..4330167acf 100644 --- a/categories/分布式事务/两阶段提交/index.html +++ b/categories/分布式事务/两阶段提交/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/字符串-online/index.html b/categories/字符串-online/index.html index 4102a07042..8cf9a0ddff 100644 --- a/categories/字符串-online/index.html +++ b/categories/字符串-online/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/小技巧/grep/index.html b/categories/小技巧/grep/index.html index 5ac9421114..f64cb30c60 100644 --- a/categories/小技巧/grep/index.html +++ b/categories/小技巧/grep/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/小技巧/grep/查日志/index.html b/categories/小技巧/grep/查日志/index.html index 15b32dac31..7bbaf6cc4d 100644 --- a/categories/小技巧/grep/查日志/index.html +++ b/categories/小技巧/grep/查日志/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/小技巧/index.html b/categories/小技巧/index.html index 8dd28a405e..31eb3864ad 100644 --- a/categories/小技巧/index.html +++ b/categories/小技巧/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/工具/index.html b/categories/工具/index.html index 8a36fc1f3d..34e95f5333 100644 --- a/categories/工具/index.html +++ b/categories/工具/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/categories/持续集成/index.html b/categories/持续集成/index.html index 99920f64ad..e7310314be 100644 --- a/categories/持续集成/index.html +++ b/categories/持续集成/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/消息队列/RocketMQ/index.html b/categories/消息队列/RocketMQ/index.html index 518832c3ea..82a1e4127e 100644 --- a/categories/消息队列/RocketMQ/index.html +++ b/categories/消息队列/RocketMQ/index.html @@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/消息队列/index.html b/categories/消息队列/index.html index eda845a00b..46508ed2ac 100644 --- a/categories/消息队列/index.html +++ b/categories/消息队列/index.html @@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/categories/生活/index.html b/categories/生活/index.html index 3d1d529000..eb4c155991 100644 --- a/categories/生活/index.html +++ b/categories/生活/index.html @@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/categories/生活/年中总结/2020/index.html b/categories/生活/年中总结/2020/index.html index f0234cf0c1..8e6ea9a086 100644 --- a/categories/生活/年中总结/2020/index.html +++ b/categories/生活/年中总结/2020/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/生活/年中总结/index.html b/categories/生活/年中总结/index.html index e3e6ea77bd..b1ebb9a2c9 100644 --- a/categories/生活/年中总结/index.html +++ b/categories/生活/年中总结/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/生活/年终总结/2019/index.html b/categories/生活/年终总结/2019/index.html index 56fb8d587d..5fe5841696 100644 --- a/categories/生活/年终总结/2019/index.html +++ b/categories/生活/年终总结/2019/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/生活/年终总结/index.html b/categories/生活/年终总结/index.html index 6ee290f940..60243f97df 100644 --- a/categories/生活/年终总结/index.html +++ b/categories/生活/年终总结/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/生活/影评/2020/index.html b/categories/生活/影评/2020/index.html index 61e42a457f..e169cda883 100644 --- a/categories/生活/影评/2020/index.html +++ b/categories/生活/影评/2020/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/生活/影评/index.html b/categories/生活/影评/index.html index 4ede5a5397..cd90a8bfc5 100644 --- a/categories/生活/影评/index.html +++ b/categories/生活/影评/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/生活/运动/index.html b/categories/生活/运动/index.html index 4f16e85418..571ab8f976 100644 --- a/categories/生活/运动/index.html +++ b/categories/生活/运动/index.html @@ -410,20 +410,20 @@ @@ -448,7 +448,7 @@
- +
diff --git a/categories/生活/运动/跑步/index.html b/categories/生活/运动/跑步/index.html index fb7179e58b..e0a55d7461 100644 --- a/categories/生活/运动/跑步/index.html +++ b/categories/生活/运动/跑步/index.html @@ -410,20 +410,20 @@ @@ -448,7 +448,7 @@
- +
diff --git a/categories/生活/运动/跑步/干活/index.html b/categories/生活/运动/跑步/干活/index.html index c3e68cc73b..703b92b7e1 100644 --- a/categories/生活/运动/跑步/干活/index.html +++ b/categories/生活/运动/跑步/干活/index.html @@ -390,20 +390,20 @@ @@ -428,7 +428,7 @@
- +
diff --git a/categories/读后感/index.html b/categories/读后感/index.html index ac317ab704..368acb8627 100644 --- a/categories/读后感/index.html +++ b/categories/读后感/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/读后感/村上春树/index.html b/categories/读后感/村上春树/index.html index 1fab89f969..c49a69a114 100644 --- a/categories/读后感/村上春树/index.html +++ b/categories/读后感/村上春树/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/问题排查/index.html b/categories/问题排查/index.html index 32636e98cc..35ecf2d271 100644 --- a/categories/问题排查/index.html +++ b/categories/问题排查/index.html @@ -330,20 +330,20 @@ @@ -368,7 +368,7 @@
- +
diff --git a/css/main.css b/css/main.css index a545d58917..f0f539e8e3 100644 --- a/css/main.css +++ b/css/main.css @@ -1261,7 +1261,7 @@ pre .javascript .function { } .links-of-author a::before, .links-of-author span.exturl::before { - background: #ff6f6c; + background: #fff; border-radius: 50%; content: ' '; display: inline-block; diff --git a/index.html b/index.html index 434636ae60..0c3a230312 100644 --- a/index.html +++ b/index.html @@ -204,7 +204,7 @@
- +