From 836222559a5d8a224ad7b10583381a4e56c1f3ed Mon Sep 17 00:00:00 2001 From: nicksxs Date: Sun, 6 Dec 2020 21:56:50 +0800 Subject: [PATCH] Site updated: 2020-12-06 21:56:49 --- 2014/12/23/my-new-post/index.html | 8 +- 2014/12/24/MFC 模态对话框/index.html | 14 +- 2014/12/30/Clone-Graph-Part-I/index.html | 12 +- 2015/01/04/Path-Sum/index.html | 10 +- 2015/01/14/Two-Sum/index.html | 8 +- .../index.html | 16 +- 2015/03/11/Number-Of-1-Bits/index.html | 10 +- 2015/03/11/Reverse-Bits/index.html | 10 +- 2015/03/13/Reverse-Integer/index.html | 8 +- 2015/04/14/Add-Two-Number/index.html | 12 +- 2015/04/15/Leetcode-No-3/index.html | 10 +- 2015/06/22/invert-binary-tree/index.html | 10 +- 2016/07/13/swoole-websocket-test/index.html | 8 +- 2016/08/14/34-Search-for-a-Range/index.html | 12 +- 2016/08/14/docker-mysql-cluster/index.html | 8 +- 2016/09/29/binary-watch/index.html | 8 +- .../minimum-size-subarray-sum-209/index.html | 10 +- 2016/10/12/summary-ranges-228/index.html | 10 +- .../index.html | 8 +- 2017/03/28/spark-little-tips/index.html | 8 +- 2017/04/25/rabbitmq-tips/index.html | 8 +- 2017/05/09/ambari-summary/index.html | 8 +- 2019/06/18/openresty/index.html | 8 +- .../23/AbstractQueuedSynchronizer/index.html | 15 +- 2019/12/07/JVM-G1-Part-1/index.html | 8 +- 2019/12/10/Redis-Part-1/index.html | 8 +- 2019/12/18/1Q84读后感/index.html | 8 +- .../聊聊Java中的单例模式/index.html | 8 +- 2019/12/26/redis数据结构介绍/index.html | 8 +- .../04/redis数据结构介绍二/index.html | 8 +- .../10/redis数据结构介绍三/index.html | 8 +- .../19/redis数据结构介绍四/index.html | 8 +- .../20/redis数据结构介绍五/index.html | 8 +- .../22/redis数据结构介绍六/index.html | 8 +- 2020/02/01/2019年终总结/index.html | 14 +- 2020/02/09/G1收集器概述/index.html | 8 +- 2020/02/16/Maven实用小技巧/index.html | 8 +- .../index.html | 8 +- 2020/03/01/寄生虫观后感/index.html | 16 +- .../index.html | 8 +- .../index.html | 8 +- .../index.html | 8 +- .../echo命令的一个小技巧/index.html | 12 +- 2020/04/05/Comparator使用小记/index.html | 8 +- 2020/04/12/redis系列介绍七/index.html | 8 +- 2020/04/18/redis系列介绍八/index.html | 8 +- 2020/04/26/聊聊-mysql-的-MVCC/index.html | 8 +- .../聊聊-mysql-的-MVCC-续篇/index.html | 8 +- .../index.html | 8 +- .../index.html | 8 +- .../index.html | 8 +- 2020/05/31/聊聊-Dubbo-的-SPI/index.html | 8 +- .../index.html | 8 +- .../index.html | 8 +- 2020/06/21/介绍一下-RocketMQ/index.html | 8 +- .../index.html | 8 +- .../index.html | 8 +- 2020/07/11/2020年中总结/index.html | 14 +- .../index.html | 8 +- .../index.html | 12 +- .../index.html | 8 +- .../index.html | 8 +- .../index.html | 12 +- .../index.html | 8 +- .../index.html | 12 +- .../index.html | 8 +- .../在老丈人家的小工记三/index.html | 8 +- .../index.html | 20 +- .../在老丈人家的小工记四/index.html | 12 +- .../index.html | 8 +- .../index.html | 20 +- .../在老丈人家的小工记五/index.html | 8 +- .../index.html | 14 +- .../index.html | 8 +- .../聊聊-Java-的类加载机制/index.html | 8 +- .../index.html | 16 +- .../聊聊-Dubbo-的容错机制/index.html | 8 +- .../index.html | 21 +- .../index.html | 792 ++++++++++++++++++ 404.html | 8 +- 404/index.html | 8 +- archives/2014/12/index.html | 10 +- archives/2014/index.html | 10 +- archives/2015/01/index.html | 10 +- archives/2015/03/index.html | 10 +- archives/2015/04/index.html | 10 +- archives/2015/06/index.html | 10 +- archives/2015/index.html | 10 +- archives/2016/07/index.html | 10 +- archives/2016/08/index.html | 10 +- archives/2016/09/index.html | 10 +- archives/2016/10/index.html | 10 +- archives/2016/11/index.html | 10 +- archives/2016/index.html | 10 +- archives/2017/03/index.html | 10 +- archives/2017/04/index.html | 10 +- archives/2017/05/index.html | 10 +- archives/2017/index.html | 10 +- archives/2019/06/index.html | 10 +- archives/2019/09/index.html | 10 +- archives/2019/12/index.html | 10 +- archives/2019/index.html | 10 +- archives/2020/01/index.html | 10 +- archives/2020/02/index.html | 10 +- archives/2020/03/index.html | 10 +- archives/2020/04/index.html | 10 +- archives/2020/05/index.html | 10 +- archives/2020/06/index.html | 10 +- archives/2020/07/index.html | 10 +- archives/2020/08/index.html | 10 +- archives/2020/09/index.html | 10 +- archives/2020/10/index.html | 10 +- archives/2020/11/index.html | 10 +- archives/2020/12/index.html | 594 +++++++++++++ archives/2020/index.html | 50 +- archives/2020/page/2/index.html | 50 +- archives/2020/page/3/index.html | 50 +- archives/2020/page/4/index.html | 50 +- archives/2020/page/5/index.html | 30 +- archives/index.html | 50 +- archives/page/2/index.html | 50 +- archives/page/3/index.html | 50 +- archives/page/4/index.html | 50 +- archives/page/5/index.html | 53 +- archives/page/6/index.html | 53 +- archives/page/7/index.html | 50 +- archives/page/8/index.html | 30 +- atom.xml | 107 ++- baidu_verify_Gl8jtoDV4z.html | 8 +- baidusitemap.xml | 57 +- categories/Binary-Tree/index.html | 8 +- categories/C/Mysql/index.html | 8 +- categories/C/Redis/index.html | 8 +- categories/C/index.html | 8 +- categories/C/page/2/index.html | 8 +- categories/Dubbo-RPC-SPI/index.html | 8 +- categories/Dubbo-RPC/index.html | 8 +- categories/Dubbo/SPI/Adaptive/index.html | 8 +- categories/Dubbo/SPI/index.html | 8 +- categories/Dubbo/index.html | 8 +- categories/Dubbo/容错机制/index.html | 8 +- categories/Filter/index.html | 8 +- categories/Interceptor-AOP/index.html | 8 +- categories/Java/Apollo/index.html | 8 +- categories/Java/Apollo/value/index.html | 8 +- categories/Java/Design-Patterns/index.html | 8 +- categories/Java/GC/index.html | 8 +- categories/Java/JVM/index.html | 8 +- categories/Java/Maven/index.html | 8 +- categories/Java/Mybatis/index.html | 8 +- categories/Java/Singleton/index.html | 8 +- categories/Java/index.html | 407 +++++---- categories/Java/page/2/index.html | 28 +- categories/Java/类加载/index.html | 8 +- categories/Java/集合/index.html | 8 +- categories/Linux/index.html | 8 +- categories/Linux/命令/echo/index.html | 8 +- categories/Linux/命令/grep/index.html | 8 +- categories/Linux/命令/index.html | 8 +- categories/MQ/index.html | 8 +- categories/Mac/Homebrew/index.html | 8 +- categories/Mac/index.html | 8 +- categories/Mybatis/index.html | 8 +- categories/Mybatis/缓存/index.html | 8 +- categories/Mysql/Sql注入/index.html | 8 +- categories/Mysql/index.html | 8 +- categories/Mysql/数据结构/index.html | 8 +- categories/Mysql/源码/index.html | 8 +- categories/Redis/Distributed-Lock/index.html | 8 +- categories/Redis/index.html | 8 +- categories/Redis/数据结构/index.html | 8 +- categories/Redis/源码/index.html | 8 +- categories/RocketMQ/index.html | 8 +- categories/Spring/Mybatis/index.html | 8 +- .../Spring/Servlet/Interceptor/AOP/index.html | 8 +- .../Spring/Servlet/Interceptor/index.html | 8 +- categories/Spring/Servlet/index.html | 8 +- categories/Spring/index.html | 8 +- categories/Thread-dump/index.html | 8 +- categories/data-analysis/index.html | 8 +- categories/docker/index.html | 172 ++-- categories/docker/介绍/index.html | 8 +- categories/docker/发行版本/index.html | 8 +- categories/index.html | 12 +- categories/leetcode/index.html | 48 +- .../leetcode/java/Binary-Tree/DFS/index.html | 8 +- .../leetcode/java/Binary-Tree/index.html | 8 +- categories/leetcode/java/index.html | 28 +- .../leetcode/java/linked-list/index.html | 8 +- categories/leetcode/java/stack/index.html | 604 +++++++++++++ categories/leetcode/java/string/index.html | 8 +- categories/leetcode/page/2/index.html | 28 +- categories/linked-list/index.html | 8 +- categories/nginx/index.html | 8 +- categories/php/icu4c/index.html | 8 +- categories/php/index.html | 8 +- categories/stack/index.html | 604 +++++++++++++ categories/中间件/RocketMQ/index.html | 8 +- categories/中间件/index.html | 8 +- categories/分布式事务/index.html | 8 +- .../三阶段提交/index.html | 8 +- .../两阶段提交/index.html | 8 +- categories/字符串-online/index.html | 8 +- categories/小技巧/grep/index.html | 8 +- .../小技巧/grep/查日志/index.html | 8 +- categories/小技巧/index.html | 8 +- categories/工具/index.html | 8 +- categories/持续集成/index.html | 8 +- categories/消息队列/RocketMQ/index.html | 8 +- categories/消息队列/index.html | 8 +- categories/生活/index.html | 8 +- categories/生活/page/2/index.html | 8 +- categories/生活/吐槽/index.html | 8 +- categories/生活/吐槽/疫情/index.html | 8 +- .../生活/吐槽/疫情/口罩/index.html | 8 +- .../生活/年中总结/2020/index.html | 8 +- categories/生活/年中总结/index.html | 8 +- .../生活/年终总结/2019/index.html | 8 +- categories/生活/年终总结/index.html | 8 +- categories/生活/影评/2020/index.html | 8 +- categories/生活/影评/index.html | 8 +- categories/生活/运动/index.html | 8 +- categories/生活/运动/跑步/index.html | 8 +- .../生活/运动/跑步/干活/index.html | 8 +- categories/读后感/index.html | 8 +- categories/读后感/村上春树/index.html | 8 +- categories/问题排查/index.html | 8 +- css/main.css | 2 +- index.html | 231 ++--- leancloud.memo | 1 + leancloud_counter_security_urls.json | 2 +- lib/pace/README.html | 8 +- page/10/index.html | 178 ++-- page/11/index.html | 231 ++--- page/12/index.html | 209 +++-- page/13/index.html | 156 ++-- page/14/index.html | 142 ++-- page/15/index.html | 106 +-- page/16/index.html | 112 ++- page/2/index.html | 219 ++--- page/3/index.html | 203 ++--- page/4/index.html | 297 +++---- page/5/index.html | 303 ++++--- page/6/index.html | 252 +++--- page/7/index.html | 238 +++--- page/8/index.html | 227 ++--- page/9/index.html | 248 +++--- sitemap.xml | 71 +- tags/2019/index.html | 8 +- tags/2020/index.html | 8 +- tags/2PC/index.html | 8 +- tags/3PC/index.html | 8 +- tags/AOP/index.html | 8 +- tags/Adaptive/index.html | 8 +- tags/Apollo/index.html | 8 +- tags/Binary-Tree/index.html | 8 +- tags/Broker/index.html | 8 +- tags/Comparator/index.html | 8 +- tags/DFS/index.html | 8 +- tags/DefaultMQPushConsumer/index.html | 8 +- tags/Design-Patterns/index.html | 8 +- tags/Distributed-Lock/index.html | 8 +- tags/Dockerfile/index.html | 8 +- tags/Dubbo/index.html | 8 +- tags/Filter/index.html | 8 +- tags/G1/index.html | 8 +- tags/GC/index.html | 8 +- tags/Garbage-First-Collector/index.html | 8 +- tags/Gogs/index.html | 8 +- tags/Homebrew/index.html | 8 +- tags/Interceptor/index.html | 8 +- tags/JMap/index.html | 8 +- tags/JPS/index.html | 8 +- tags/JStack/index.html | 8 +- tags/JVM/index.html | 8 +- tags/Mac/index.html | 8 +- tags/Maven/index.html | 8 +- tags/Mybatis/index.html | 8 +- tags/NameServer/index.html | 8 +- tags/RPC/index.html | 8 +- tags/Redis/index.html | 8 +- tags/RocketMQ/index.html | 8 +- tags/SPI/index.html | 8 +- tags/Servlet/index.html | 8 +- tags/Singleton/index.html | 8 +- tags/Spring/index.html | 8 +- tags/Sql注入/index.html | 8 +- tags/Stream/index.html | 8 +- tags/Thread-dump/index.html | 8 +- tags/Tomcat/index.html | 8 +- tags/Web/index.html | 8 +- tags/Webhook/index.html | 8 +- tags/aqs/index.html | 8 +- tags/c/index.html | 8 +- tags/c/page/2/index.html | 8 +- tags/cgroup/index.html | 8 +- tags/cluster/index.html | 8 +- tags/docker/index.html | 8 +- tags/echo/index.html | 8 +- tags/environment/index.html | 8 +- tags/gap-lock/index.html | 8 +- tags/grep/index.html | 8 +- tags/hadoop/index.html | 8 +- tags/icu4c/index.html | 8 +- tags/im/index.html | 8 +- tags/index.html | 12 +- tags/java/index.html | 49 +- tags/java/page/2/index.html | 8 +- tags/leetcode-155/index.html | 604 +++++++++++++ tags/leetcode/index.html | 48 +- tags/leetcode/page/2/index.html | 28 +- tags/linked-list/index.html | 8 +- tags/linux/index.html | 8 +- tags/mfc/index.html | 8 +- tags/min-stack/index.html | 604 +++++++++++++ tags/mq/index.html | 8 +- tags/mvcc/index.html | 8 +- tags/mysql/index.html | 8 +- tags/namespace/index.html | 8 +- tags/next-key-lock/index.html | 8 +- tags/nginx/index.html | 8 +- tags/nullsfirst/index.html | 8 +- tags/openresty/index.html | 8 +- tags/php/index.html | 8 +- tags/python/index.html | 8 +- tags/read-view/index.html | 8 +- tags/sort/index.html | 8 +- tags/spark/index.html | 8 +- tags/stack/index.html | 604 +++++++++++++ tags/string/index.html | 8 +- tags/swoole/index.html | 8 +- tags/uname/index.html | 8 +- tags/value/index.html | 8 +- tags/websocket/index.html | 8 +- tags/zsh/index.html | 8 +- tags/三阶段提交/index.html | 8 +- tags/两阶段提交/index.html | 8 +- tags/中间件/index.html | 8 +- tags/二叉树/index.html | 8 +- tags/公交车/index.html | 8 +- tags/减肥/index.html | 8 +- tags/分布式事务/index.html | 8 +- tags/分布式锁/index.html | 8 +- tags/削峰填谷/index.html | 8 +- tags/单例/index.html | 8 +- tags/博客,文章/index.html | 8 +- tags/发行版/index.html | 8 +- tags/口罩/index.html | 8 +- tags/吐槽/index.html | 8 +- tags/容错机制/index.html | 8 +- tags/寄生虫/index.html | 8 +- tags/小技巧/index.html | 8 +- tags/干活/index.html | 8 +- tags/年中总结/index.html | 8 +- tags/年终总结/index.html | 8 +- tags/幻读/index.html | 8 +- tags/影评/index.html | 8 +- tags/排序/index.html | 8 +- tags/数据结构/index.html | 8 +- tags/数据结构/page/2/index.html | 8 +- tags/最小栈/index.html | 604 +++++++++++++ tags/杀人诛心/index.html | 8 +- tags/注解/index.html | 8 +- tags/消息队列/index.html | 8 +- tags/源码/index.html | 8 +- tags/源码/page/2/index.html | 8 +- tags/源码解析/index.html | 8 +- tags/生活/index.html | 8 +- tags/疫情/index.html | 8 +- tags/缓存/index.html | 8 +- tags/自适应拓展/index.html | 8 +- tags/设计模式/index.html | 8 +- tags/读后感/index.html | 8 +- tags/跑步/index.html | 8 +- tags/转义/index.html | 8 +- tags/运动/index.html | 8 +- tags/题解/index.html | 28 +- 377 files changed, 9062 insertions(+), 3822 deletions(-) create mode 100644 2020/12/06/Leetcode-155-最小栈-Min-Stack-题解分析/index.html create mode 100644 archives/2020/12/index.html create mode 100644 categories/leetcode/java/stack/index.html create mode 100644 categories/stack/index.html create mode 100644 tags/leetcode-155/index.html create mode 100644 tags/min-stack/index.html create mode 100644 tags/stack/index.html create mode 100644 tags/最小栈/index.html diff --git a/2014/12/23/my-new-post/index.html b/2014/12/23/my-new-post/index.html index 2b791c420b..9d8b0b2fe6 100644 --- a/2014/12/23/my-new-post/index.html +++ b/2014/12/23/my-new-post/index.html @@ -428,20 +428,20 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 tags
@@ -466,7 +466,7 @@
- +
diff --git a/2014/12/24/MFC 模态对话框/index.html b/2014/12/24/MFC 模态对话框/index.html index aa9c3b0760..5de814d08d 100644 --- a/2014/12/24/MFC 模态对话框/index.html +++ b/2014/12/24/MFC 模态对话框/index.html @@ -301,16 +301,16 @@ @@ -451,20 +451,20 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 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 e589b7b728..60287d897d 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 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 tags
@@ -492,7 +492,7 @@
- +
diff --git a/2015/01/04/Path-Sum/index.html b/2015/01/04/Path-Sum/index.html index 677ff5bd9d..1a5dae73a2 100644 --- a/2015/01/04/Path-Sum/index.html +++ b/2015/01/04/Path-Sum/index.html @@ -302,7 +302,7 @@ @@ -469,20 +469,20 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 tags
@@ -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 e9f6d59934..de4703f8b7 100644 --- a/2015/03/11/Number-Of-1-Bits/index.html +++ b/2015/03/11/Number-Of-1-Bits/index.html @@ -299,7 +299,7 @@ @@ -452,20 +452,20 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 tags
@@ -490,7 +490,7 @@
- +
diff --git a/2016/11/10/php-abstract-class-and-interface/index.html b/2016/11/10/php-abstract-class-and-interface/index.html index b51b708291..874e0498e8 100644 --- a/2016/11/10/php-abstract-class-and-interface/index.html +++ b/2016/11/10/php-abstract-class-and-interface/index.html @@ -447,20 +447,20 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 tags
@@ -485,7 +485,7 @@
- +
diff --git a/2017/03/28/spark-little-tips/index.html b/2017/03/28/spark-little-tips/index.html index 82590b99e0..dda7b1d953 100644 --- a/2017/03/28/spark-little-tips/index.html +++ b/2017/03/28/spark-little-tips/index.html @@ -436,20 +436,20 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 tags
@@ -474,7 +474,7 @@
- +
diff --git a/2017/04/25/rabbitmq-tips/index.html b/2017/04/25/rabbitmq-tips/index.html index ac895c5e6f..ff5f35eb64 100644 --- a/2017/04/25/rabbitmq-tips/index.html +++ b/2017/04/25/rabbitmq-tips/index.html @@ -448,20 +448,20 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 tags
@@ -486,7 +486,7 @@
- +
diff --git a/2017/05/09/ambari-summary/index.html b/2017/05/09/ambari-summary/index.html index 9f303a79cb..cda061535f 100644 --- a/2017/05/09/ambari-summary/index.html +++ b/2017/05/09/ambari-summary/index.html @@ -440,20 +440,20 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 tags
@@ -478,7 +478,7 @@
- +
diff --git a/2019/06/18/openresty/index.html b/2019/06/18/openresty/index.html index c05cf4cb18..5ef1f3950c 100644 --- a/2019/06/18/openresty/index.html +++ b/2019/06/18/openresty/index.html @@ -462,20 +462,20 @@
- 78 + 79 posts
- 96 + 98 categories
- 128 + 132 tags
@@ -500,7 +500,7 @@
- +
diff --git a/2019/09/23/AbstractQueuedSynchronizer/index.html b/2019/09/23/AbstractQueuedSynchronizer/index.html index 5acbfc3eaf..6527b53419 100644 --- a/2019/09/23/AbstractQueuedSynchronizer/index.html +++ b/2019/09/23/AbstractQueuedSynchronizer/index.html @@ -302,10 +302,10 @@
@@ -452,20 +455,20 @@ @@ -490,7 +493,7 @@
- +
diff --git a/2019/12/07/JVM-G1-Part-1/index.html b/2019/12/07/JVM-G1-Part-1/index.html index 44b6d07ff5..074873707a 100644 --- a/2019/12/07/JVM-G1-Part-1/index.html +++ b/2019/12/07/JVM-G1-Part-1/index.html @@ -475,20 +475,20 @@ @@ -513,7 +513,7 @@
- +
diff --git a/2019/12/10/Redis-Part-1/index.html b/2019/12/10/Redis-Part-1/index.html index 7dc61f7f7b..4c6896c2fc 100644 --- a/2019/12/10/Redis-Part-1/index.html +++ b/2019/12/10/Redis-Part-1/index.html @@ -465,20 +465,20 @@ @@ -503,7 +503,7 @@
- +
diff --git a/2019/12/18/1Q84读后感/index.html b/2019/12/18/1Q84读后感/index.html index 4b109eeedc..6c7bb33082 100644 --- a/2019/12/18/1Q84读后感/index.html +++ b/2019/12/18/1Q84读后感/index.html @@ -443,20 +443,20 @@ @@ -481,7 +481,7 @@
- +
diff --git a/2019/12/21/聊聊Java中的单例模式/index.html b/2019/12/21/聊聊Java中的单例模式/index.html index b370b1dea4..1daf3bcc3a 100644 --- a/2019/12/21/聊聊Java中的单例模式/index.html +++ b/2019/12/21/聊聊Java中的单例模式/index.html @@ -456,20 +456,20 @@ @@ -494,7 +494,7 @@
- +
diff --git a/2019/12/26/redis数据结构介绍/index.html b/2019/12/26/redis数据结构介绍/index.html index 9db2275620..ad84ba6930 100644 --- a/2019/12/26/redis数据结构介绍/index.html +++ b/2019/12/26/redis数据结构介绍/index.html @@ -486,20 +486,20 @@ @@ -524,7 +524,7 @@
- +
diff --git a/2020/01/04/redis数据结构介绍二/index.html b/2020/01/04/redis数据结构介绍二/index.html index 9ee1d93af6..4fe6f13289 100644 --- a/2020/01/04/redis数据结构介绍二/index.html +++ b/2020/01/04/redis数据结构介绍二/index.html @@ -480,20 +480,20 @@ @@ -518,7 +518,7 @@
- +
diff --git a/2020/01/10/redis数据结构介绍三/index.html b/2020/01/10/redis数据结构介绍三/index.html index 98f39f4313..9b3bbb07e5 100644 --- a/2020/01/10/redis数据结构介绍三/index.html +++ b/2020/01/10/redis数据结构介绍三/index.html @@ -480,20 +480,20 @@ @@ -518,7 +518,7 @@
- +
diff --git a/2020/01/19/redis数据结构介绍四/index.html b/2020/01/19/redis数据结构介绍四/index.html index ef38fcc7c3..50aa4f4ac8 100644 --- a/2020/01/19/redis数据结构介绍四/index.html +++ b/2020/01/19/redis数据结构介绍四/index.html @@ -475,20 +475,20 @@ @@ -513,7 +513,7 @@
- +
diff --git a/2020/01/20/redis数据结构介绍五/index.html b/2020/01/20/redis数据结构介绍五/index.html index 674f1811a3..d661c70039 100644 --- a/2020/01/20/redis数据结构介绍五/index.html +++ b/2020/01/20/redis数据结构介绍五/index.html @@ -473,20 +473,20 @@ @@ -511,7 +511,7 @@
- +
diff --git a/2020/01/22/redis数据结构介绍六/index.html b/2020/01/22/redis数据结构介绍六/index.html index 761c6516c9..e499ea708c 100644 --- a/2020/01/22/redis数据结构介绍六/index.html +++ b/2020/01/22/redis数据结构介绍六/index.html @@ -495,20 +495,20 @@ @@ -533,7 +533,7 @@
- +
diff --git a/2020/02/01/2019年终总结/index.html b/2020/02/01/2019年终总结/index.html index 8151b11bc8..ed45df4ada 100644 --- a/2020/02/01/2019年终总结/index.html +++ b/2020/02/01/2019年终总结/index.html @@ -317,15 +317,15 @@ - +
@@ -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 234a63f1ae..5d1e187608 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 c3b850ee74..0b9e696b00 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 9d75e223ab..76cd3bd364 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 a21bc29c8e..639c4057e4 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 91ee821458..00a8c21721 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 78d3c464d0..e3b3af0a80 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 89e86b03ed..7b510921b8 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 63a36f2871..7376b5a287 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 3a598a2e6a..ec5fb27fec 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 aa765b697b..bcf2ffb9f8 100644 --- a/2020/04/12/redis系列介绍七/index.html +++ b/2020/04/12/redis系列介绍七/index.html @@ -475,20 +475,20 @@ @@ -513,7 +513,7 @@
- +
diff --git a/2020/04/18/redis系列介绍八/index.html b/2020/04/18/redis系列介绍八/index.html index 59a9302483..57c5eb77a0 100644 --- a/2020/04/18/redis系列介绍八/index.html +++ b/2020/04/18/redis系列介绍八/index.html @@ -507,20 +507,20 @@ @@ -545,7 +545,7 @@
- +
diff --git a/2020/04/26/聊聊-mysql-的-MVCC/index.html b/2020/04/26/聊聊-mysql-的-MVCC/index.html index 51eb2e096a..2058029d3b 100644 --- a/2020/04/26/聊聊-mysql-的-MVCC/index.html +++ b/2020/04/26/聊聊-mysql-的-MVCC/index.html @@ -494,20 +494,20 @@ @@ -532,7 +532,7 @@
- +
diff --git a/2020/05/02/聊聊-mysql-的-MVCC-续篇/index.html b/2020/05/02/聊聊-mysql-的-MVCC-续篇/index.html index af512a5225..1c1eb3fc86 100644 --- a/2020/05/02/聊聊-mysql-的-MVCC-续篇/index.html +++ b/2020/05/02/聊聊-mysql-的-MVCC-续篇/index.html @@ -490,20 +490,20 @@ @@ -528,7 +528,7 @@
- +
diff --git a/2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/index.html b/2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/index.html index d97b7349e9..b157b2f4fb 100644 --- a/2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/index.html +++ b/2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/index.html @@ -490,20 +490,20 @@ @@ -528,7 +528,7 @@
- +
diff --git a/2020/05/17/聊聊我理解的分布式事务/index.html b/2020/05/17/聊聊我理解的分布式事务/index.html index a5c4c6fa74..e486a4b18f 100644 --- a/2020/05/17/聊聊我理解的分布式事务/index.html +++ b/2020/05/17/聊聊我理解的分布式事务/index.html @@ -473,20 +473,20 @@ @@ -511,7 +511,7 @@
- +
diff --git a/2020/05/22/聊聊我刚学会的应用诊断方法/index.html b/2020/05/22/聊聊我刚学会的应用诊断方法/index.html index 6662eb5eae..6f0e26a67b 100644 --- a/2020/05/22/聊聊我刚学会的应用诊断方法/index.html +++ b/2020/05/22/聊聊我刚学会的应用诊断方法/index.html @@ -470,20 +470,20 @@ @@ -508,7 +508,7 @@
- +
diff --git a/2020/05/31/聊聊-Dubbo-的-SPI/index.html b/2020/05/31/聊聊-Dubbo-的-SPI/index.html index 46538ead04..bde1507df9 100644 --- a/2020/05/31/聊聊-Dubbo-的-SPI/index.html +++ b/2020/05/31/聊聊-Dubbo-的-SPI/index.html @@ -475,20 +475,20 @@ @@ -513,7 +513,7 @@
- +
diff --git a/2020/06/06/聊聊-Dubbo-的-SPI-续之自适应拓展/index.html b/2020/06/06/聊聊-Dubbo-的-SPI-续之自适应拓展/index.html index ffd25ba194..72a8a55c52 100644 --- a/2020/06/06/聊聊-Dubbo-的-SPI-续之自适应拓展/index.html +++ b/2020/06/06/聊聊-Dubbo-的-SPI-续之自适应拓展/index.html @@ -481,20 +481,20 @@ @@ -519,7 +519,7 @@
- +
diff --git a/2020/06/13/聊聊一次-brew-update-引发的血案/index.html b/2020/06/13/聊聊一次-brew-update-引发的血案/index.html index 4ff7151075..9cfc3b6a3e 100644 --- a/2020/06/13/聊聊一次-brew-update-引发的血案/index.html +++ b/2020/06/13/聊聊一次-brew-update-引发的血案/index.html @@ -467,20 +467,20 @@ @@ -505,7 +505,7 @@
- +
diff --git a/2020/06/21/介绍一下-RocketMQ/index.html b/2020/06/21/介绍一下-RocketMQ/index.html index cf46747a00..626d0d30a8 100644 --- a/2020/06/21/介绍一下-RocketMQ/index.html +++ b/2020/06/21/介绍一下-RocketMQ/index.html @@ -514,20 +514,20 @@ @@ -552,7 +552,7 @@
- +
diff --git a/2020/06/26/聊一下-RocketMQ-的-Consumer/index.html b/2020/06/26/聊一下-RocketMQ-的-Consumer/index.html index 0dbf8ce442..3b90f817a6 100644 --- a/2020/06/26/聊一下-RocketMQ-的-Consumer/index.html +++ b/2020/06/26/聊一下-RocketMQ-的-Consumer/index.html @@ -506,20 +506,20 @@ @@ -544,7 +544,7 @@
- +
diff --git a/2020/07/05/聊一下-RocketMQ-的-NameServer-源码/index.html b/2020/07/05/聊一下-RocketMQ-的-NameServer-源码/index.html index e5f364a6f0..666d74523d 100644 --- a/2020/07/05/聊一下-RocketMQ-的-NameServer-源码/index.html +++ b/2020/07/05/聊一下-RocketMQ-的-NameServer-源码/index.html @@ -507,20 +507,20 @@ @@ -545,7 +545,7 @@
- +
diff --git a/2020/07/11/2020年中总结/index.html b/2020/07/11/2020年中总结/index.html index 15dcc5054f..815984c204 100644 --- a/2020/07/11/2020年中总结/index.html +++ b/2020/07/11/2020年中总结/index.html @@ -307,15 +307,15 @@ - +
@@ -456,20 +456,20 @@ @@ -494,7 +494,7 @@
- +
diff --git a/2020/07/19/聊聊-RocketMQ-的-Broker-源码/index.html b/2020/07/19/聊聊-RocketMQ-的-Broker-源码/index.html index 7dc937c8d5..e97041b7df 100644 --- a/2020/07/19/聊聊-RocketMQ-的-Broker-源码/index.html +++ b/2020/07/19/聊聊-RocketMQ-的-Broker-源码/index.html @@ -526,20 +526,20 @@ @@ -564,7 +564,7 @@
- +
diff --git a/2020/07/26/我是如何走上跑步这条不归路的/index.html b/2020/07/26/我是如何走上跑步这条不归路的/index.html index 26645fd660..7af9be8499 100644 --- a/2020/07/26/我是如何走上跑步这条不归路的/index.html +++ b/2020/07/26/我是如何走上跑步这条不归路的/index.html @@ -307,10 +307,10 @@
-
+
+
@@ -462,20 +465,20 @@ @@ -500,7 +503,7 @@
- +
diff --git a/2020/12/06/Leetcode-155-最小栈-Min-Stack-题解分析/index.html b/2020/12/06/Leetcode-155-最小栈-Min-Stack-题解分析/index.html new file mode 100644 index 0000000000..985a9d814f --- /dev/null +++ b/2020/12/06/Leetcode-155-最小栈-Min-Stack-题解分析/index.html @@ -0,0 +1,792 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Leetcode 155 最小栈(Min Stack) 题解分析 | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

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

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

+ Leetcode 155 最小栈(Min Stack) 题解分析 +

+ + +
+ + + + +
+ + +

题目介绍

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
设计一个栈,支持压栈,出站,获取栈顶元素,通过常数级复杂度获取栈中的最小元素

+
    +
  • push(x) – Push element x onto stack.
  • +
  • pop() – Removes the element on top of the stack.
  • +
  • top() – Get the top element.
  • +
  • getMin() – Retrieve the minimum element in the stack.
  • +
+

示例

Example 1:

+
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Input
["MinStack","push","push","push","getMin","pop","top","getMin"]
[[],[-2],[0],[-3],[],[],[],[]]

Output
[null,null,null,null,-3,null,0,-2]

Explanation
MinStack minStack = new MinStack();
minStack.push(-2);
minStack.push(0);
minStack.push(-3);
minStack.getMin(); // return -3
minStack.pop();
minStack.top(); // return 0
minStack.getMin(); // return -2
+ +

简要分析

其实现在大部分语言都自带类栈的数据结构,Java 也自带 stack 这个数据结构,所以这个题的主要难点的就是常数级的获取最小元素,最开始的想法是就一个栈外加一个记录最小值的变量就行了,但是仔细一想是不行的,因为随着元素被 pop 出去,这个最小值也可能需要梗着变化,就不太好判断了,所以后面是用了一个辅助栈。

+

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class MinStack {
// 这个作为主栈
Stack<Integer> s1 = new Stack<>();
// 这个作为辅助栈,放最小值的栈
Stack<Integer> s2 = new Stack<>();
/** initialize your data structure here. */
public MinStack() {

}

public void push(int x) {
// 放入主栈
s1.push(x);
// 当 s2 是空或者当前值是小于"等于" s2 栈顶时,压入辅助最小值的栈
// 注意这里的"等于"非常必要,因为当最小值有多个的情况下,也需要压入栈,否则在 pop 的时候就会不对等
if (s2.isEmpty() || x <= s2.peek()) {
s2.push(x);
}
}

public void pop() {
// 首先就是主栈要 pop,然后就是第二个了,跟上面的"等于"很有关系,
// 因为如果有两个最小值,如果前面等于的情况没有压栈,那这边相等的时候 pop 就会少一个了,可能就导致最小值不对了
int x = s1.pop();
if (x == s2.peek()) {
s2.pop();
}
}

public int top() {
// 栈顶的元素
return s1.peek();
}

public int getMin() {
// 辅助最小栈的栈顶
return s2.peek();
}
}
+ + +
+ + + + + + + + +
+
请我喝杯咖啡
+ + +
+ + + +
+ +
+ + + + +
+ + + + + + +
+ + +
+
+ +
+
+ + + + +
+ + + + + + + + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/404.html b/404.html index 8019871eaa..f5d06243cb 100644 --- a/404.html +++ b/404.html @@ -320,20 +320,20 @@ @@ -358,7 +358,7 @@
- +
diff --git a/404/index.html b/404/index.html index 4a4b1d0f01..6665f69c58 100644 --- a/404/index.html +++ b/404/index.html @@ -307,20 +307,20 @@ @@ -345,7 +345,7 @@
- +
diff --git a/archives/2014/12/index.html b/archives/2014/12/index.html index 8f71fee5ba..3f301ff9c8 100644 --- a/archives/2014/12/index.html +++ b/archives/2014/12/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 posts in total. Keep on posting.
@@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/archives/2014/index.html b/archives/2014/index.html index f62b2068ae..2a459fa80e 100644 --- a/archives/2014/index.html +++ b/archives/2014/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 5f3377c059..d7730d206a 100644 --- a/archives/2015/01/index.html +++ b/archives/2015/01/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 94ae5185fe..52b6f42d03 100644 --- a/archives/2015/03/index.html +++ b/archives/2015/03/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 95f5598658..39c9b9d962 100644 --- a/archives/2015/04/index.html +++ b/archives/2015/04/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 1c95c560f5..1be4835af4 100644 --- a/archives/2015/06/index.html +++ b/archives/2015/06/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 ad12071584..ec7dd1f4ee 100644 --- a/archives/2015/index.html +++ b/archives/2015/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 49f4a7ad29..30925df819 100644 --- a/archives/2016/07/index.html +++ b/archives/2016/07/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 ddf93bf217..51fb51b9cb 100644 --- a/archives/2016/08/index.html +++ b/archives/2016/08/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 ff7eca52d5..c4b45990f1 100644 --- a/archives/2016/09/index.html +++ b/archives/2016/09/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 25873711d7..f83cba6f02 100644 --- a/archives/2016/10/index.html +++ b/archives/2016/10/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 16c535a300..6c477e8ee1 100644 --- a/archives/2016/11/index.html +++ b/archives/2016/11/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 d361ed6da6..044f27525d 100644 --- a/archives/2016/index.html +++ b/archives/2016/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 6ead5b731f..be7271e793 100644 --- a/archives/2017/03/index.html +++ b/archives/2017/03/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 c0f070c5b5..e452ce3b81 100644 --- a/archives/2017/04/index.html +++ b/archives/2017/04/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 0ef37110d8..d5a0da40bb 100644 --- a/archives/2017/05/index.html +++ b/archives/2017/05/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 2f4075df44..38b54dafa9 100644 --- a/archives/2017/index.html +++ b/archives/2017/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 70795dd997..069248047f 100644 --- a/archives/2019/06/index.html +++ b/archives/2019/06/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 4cde0ccd3f..dc8a8fe44d 100644 --- a/archives/2019/09/index.html +++ b/archives/2019/09/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 ab0a54294a..7dfe72c9ea 100644 --- a/archives/2019/12/index.html +++ b/archives/2019/12/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 cbd036d1a4..aada7ab999 100644 --- a/archives/2019/index.html +++ b/archives/2019/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 713bd52da1..2aa6a842c1 100644 --- a/archives/2020/01/index.html +++ b/archives/2020/01/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 dc0bd8c198..5886a9cfc6 100644 --- a/archives/2020/02/index.html +++ b/archives/2020/02/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 4cbcb40886..cba52926e5 100644 --- a/archives/2020/03/index.html +++ b/archives/2020/03/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 f1591ea81b..4e57dbdf97 100644 --- a/archives/2020/04/index.html +++ b/archives/2020/04/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 f089b69b2b..2323524019 100644 --- a/archives/2020/05/index.html +++ b/archives/2020/05/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 8dd688fd95..be328b1978 100644 --- a/archives/2020/06/index.html +++ b/archives/2020/06/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 7a9e041d8e..7795cc57bf 100644 --- a/archives/2020/07/index.html +++ b/archives/2020/07/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 0968aa2276..adfbd35ffd 100644 --- a/archives/2020/08/index.html +++ b/archives/2020/08/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 b7fecb6fac..fea5f3afe9 100644 --- a/archives/2020/09/index.html +++ b/archives/2020/09/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 586bd3928f..11f7b3ba86 100644 --- a/archives/2020/10/index.html +++ b/archives/2020/10/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 posts in total. Keep on posting.
@@ -370,20 +370,20 @@ @@ -408,7 +408,7 @@
- +
diff --git a/archives/2020/11/index.html b/archives/2020/11/index.html index 0524f069a0..ef6985c719 100644 --- a/archives/2020/11/index.html +++ b/archives/2020/11/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 posts in total. Keep on posting.
@@ -390,20 +390,20 @@ @@ -428,7 +428,7 @@
- +
diff --git a/archives/2020/12/index.html b/archives/2020/12/index.html new file mode 100644 index 0000000000..cb7454a385 --- /dev/null +++ b/archives/2020/12/index.html @@ -0,0 +1,594 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Archive | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

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

+
+ + +
+ + + + + + + + + +
+
+ + +
+ + 0% +
+ + + + +
+
+
+ + +
+ + + + + +
+
+
+ + Nice! 79 posts in total. Keep on posting. +
+ + +
+ 2020 +
+ + + + +
+
+ + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archives/2020/index.html b/archives/2020/index.html index 87d3fad3ea..6c3ad8eb22 100644 --- a/archives/2020/index.html +++ b/archives/2020/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 bcae8a3e39..a6d77b89fd 100644 --- a/archives/2020/page/2/index.html +++ b/archives/2020/page/2/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 089ed92fbe..d5a66c9178 100644 --- a/archives/2020/page/3/index.html +++ b/archives/2020/page/3/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 42f5e2f259..2f9e4a54d2 100644 --- a/archives/2020/page/4/index.html +++ b/archives/2020/page/4/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 c57ce148cd..3093ba7835 100644 --- a/archives/2020/page/5/index.html +++ b/archives/2020/page/5/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -473,20 +493,20 @@ @@ -511,7 +531,7 @@
- +
diff --git a/archives/index.html b/archives/index.html index dbc5b1868a..c3a9b5a915 100644 --- a/archives/index.html +++ b/archives/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 029c9c79a5..978fda3aab 100644 --- a/archives/page/2/index.html +++ b/archives/page/2/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 c6519f5fa4..f008dfc4e3 100644 --- a/archives/page/3/index.html +++ b/archives/page/3/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 dd2a1a68a3..cd18bd393f 100644 --- a/archives/page/4/index.html +++ b/archives/page/4/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 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 4d29040614..16dad7a237 100644 --- a/archives/page/5/index.html +++ b/archives/page/5/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2020
+ +
@@ -395,29 +415,6 @@
-
- 2019 -
- -
@@ -496,20 +493,20 @@ @@ -534,7 +531,7 @@
- +
diff --git a/archives/page/6/index.html b/archives/page/6/index.html index 3ea8e0d4b7..3b4d785020 100644 --- a/archives/page/6/index.html +++ b/archives/page/6/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2019
+ +
@@ -398,29 +418,6 @@
-
- 2016 -
- -
@@ -499,20 +496,20 @@ @@ -537,7 +534,7 @@
- +
diff --git a/archives/page/7/index.html b/archives/page/7/index.html index 23f758908b..373f64ad8e 100644 --- a/archives/page/7/index.html +++ b/archives/page/7/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2016
+ +
@@ -399,26 +419,6 @@
- -
@@ -496,20 +496,20 @@ @@ -534,7 +534,7 @@
- +
diff --git a/archives/page/8/index.html b/archives/page/8/index.html index 28382bc5ad..1a0e648bbd 100644 --- a/archives/page/8/index.html +++ b/archives/page/8/index.html @@ -208,7 +208,7 @@
- Nice! 78 posts in total. Keep on posting. + Nice! 79 posts in total. Keep on posting.
@@ -216,6 +216,26 @@ 2015
+ +
@@ -456,20 +476,20 @@ @@ -494,7 +514,7 @@
- +
diff --git a/atom.xml b/atom.xml index fec21c964e..f672181440 100644 --- a/atom.xml +++ b/atom.xml @@ -6,7 +6,7 @@ - 2020-11-29T15:55:41.170Z + 2020-12-06T13:55:55.404Z https://nicksxs.me/ @@ -16,6 +16,53 @@ Hexo + + Leetcode 155 最小栈(Min Stack) 题解分析 + + https://nicksxs.me/2020/12/06/Leetcode-155-%E6%9C%80%E5%B0%8F%E6%A0%88-Min-Stack-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ + 2020-12-06T13:55:55.000Z + 2020-12-06T13:55:55.404Z + + + + + + + + <h2 id="题目介绍"><a href="#题目介绍" class="headerlink" title="题目介绍"></a>题目介绍</h2><p>Design a stack that supports push, pop, top, and retrieving + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 从清华美院学姐聊聊我们身边的恶人 @@ -322,10 +369,10 @@ - - + + @@ -450,10 +497,10 @@ - - + + @@ -808,54 +855,4 @@ - - 聊聊 RocketMQ 的 Broker 源码 - - https://nicksxs.me/2020/07/19/%E8%81%8A%E8%81%8A-RocketMQ-%E7%9A%84-Broker-%E6%BA%90%E7%A0%81/ - 2020-07-19T13:48:48.000Z - 2020-07-19T13:49:39.000Z - - - - - - - - <p>broker 的启动形式有点类似于 NameServer,都是服务类型的,跟 Consumer 差别比较大,</p> -<p>首先是org.apache.rocketmq.broker.BrokerStartup中的 main - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/baidu_verify_Gl8jtoDV4z.html b/baidu_verify_Gl8jtoDV4z.html index 3b9e10596a..c65e005bf8 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 a89ee4b13f..8bbfb1cd97 100644 --- a/baidusitemap.xml +++ b/baidusitemap.xml @@ -1,6 +1,9 @@ + https://nicksxs.me/2020/12/06/Leetcode-155-%E6%9C%80%E5%B0%8F%E6%A0%88-Min-Stack-%E9%A2%98%E8%A7%A3%E5%88%86%E6%9E%90/ + 2020-12-06 + https://nicksxs.me/2020/11/29/%E4%BB%8E%E6%B8%85%E5%8D%8E%E7%BE%8E%E9%99%A2%E5%AD%A6%E5%A7%90%E8%81%8A%E8%81%8A%E6%88%91%E4%BB%AC%E8%BA%AB%E8%BE%B9%E7%9A%84%E6%81%B6%E4%BA%BA/ 2020-11-29 @@ -145,85 +148,85 @@ 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/2019/12/10/Redis-Part-1/ - 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/04/14/Add-Two-Number/ 2020-01-12 - https://nicksxs.me/2016/10/11/minimum-size-subarray-sum-209/ + https://nicksxs.me/2016/08/14/34-Search-for-a-Range/ 2020-01-12 - https://nicksxs.me/2016/08/14/docker-mysql-cluster/ + 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/2016/08/14/34-Search-for-a-Range/ + https://nicksxs.me/2015/03/11/Reverse-Bits/ 2020-01-12 - https://nicksxs.me/2016/09/29/binary-watch/ + 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/2019/06/18/openresty/ + https://nicksxs.me/2019/12/10/Redis-Part-1/ 2020-01-12 - https://nicksxs.me/2016/11/10/php-abstract-class-and-interface/ + 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/2015/03/11/Reverse-Bits/ + https://nicksxs.me/2016/09/29/binary-watch/ 2020-01-12 - https://nicksxs.me/2015/04/14/Add-Two-Number/ + https://nicksxs.me/2016/11/10/php-abstract-class-and-interface/ 2020-01-12 - https://nicksxs.me/2015/01/14/Two-Sum/ + https://nicksxs.me/2017/05/09/ambari-summary/ 2020-01-12 - https://nicksxs.me/2017/05/09/ambari-summary/ + https://nicksxs.me/2019/06/18/openresty/ 2020-01-12 https://nicksxs.me/2015/03/13/Reverse-Integer/ 2020-01-12 - 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/ + https://nicksxs.me/2016/08/14/docker-mysql-cluster/ 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/2015/01/14/Two-Sum/ 2020-01-12 - https://nicksxs.me/2016/10/12/summary-ranges-228/ + https://nicksxs.me/2016/10/11/minimum-size-subarray-sum-209/ 2020-01-12 - https://nicksxs.me/2019/09/23/AbstractQueuedSynchronizer/ + https://nicksxs.me/2015/01/04/Path-Sum/ 2020-01-12 - https://nicksxs.me/2014/12/30/Clone-Graph-Part-I/ + https://nicksxs.me/2015/06/22/invert-binary-tree/ 2020-01-12 - https://nicksxs.me/2015/06/22/invert-binary-tree/ + https://nicksxs.me/2014/12/23/my-new-post/ 2020-01-12 - https://nicksxs.me/2015/04/15/Leetcode-No-3/ + https://nicksxs.me/2015/01/16/pcre-intro-and-a-simple-package/ 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/2016/07/13/swoole-websocket-test/ 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/30/Clone-Graph-Part-I/ 2020-01-12 - https://nicksxs.me/2017/04/25/rabbitmq-tips/ + https://nicksxs.me/2015/03/11/Number-Of-1-Bits/ 2020-01-12 - https://nicksxs.me/2015/01/16/pcre-intro-and-a-simple-package/ + https://nicksxs.me/2016/10/12/summary-ranges-228/ 2020-01-12 - https://nicksxs.me/2015/03/11/Number-Of-1-Bits/ + https://nicksxs.me/2015/04/15/Leetcode-No-3/ + 2020-01-12 + + https://nicksxs.me/2019/09/23/AbstractQueuedSynchronizer/ 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 5170afc8df..f17180c03c 100644 --- a/categories/Binary-Tree/index.html +++ b/categories/Binary-Tree/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/C/Mysql/index.html b/categories/C/Mysql/index.html index f79b297a75..fc3af93101 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 c1fb4b71ca..a7195e16b0 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 1e89f6c35c..8b63c6ad24 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 029d5b2295..18d325c485 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 d351f2f2e6..7a011f1dfa 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-RPC/index.html b/categories/Dubbo-RPC/index.html index af42fbb552..463e670fe7 100644 --- a/categories/Dubbo-RPC/index.html +++ b/categories/Dubbo-RPC/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Dubbo/SPI/Adaptive/index.html b/categories/Dubbo/SPI/Adaptive/index.html index 4bbade9213..fc9b6c821e 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 e2cddf0fe9..f7e9c55284 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 af6061d236..a415fe699a 100644 --- a/categories/Dubbo/index.html +++ b/categories/Dubbo/index.html @@ -350,20 +350,20 @@ @@ -388,7 +388,7 @@
- +
diff --git a/categories/Dubbo/容错机制/index.html b/categories/Dubbo/容错机制/index.html index e891c2b866..60b38b407b 100644 --- a/categories/Dubbo/容错机制/index.html +++ b/categories/Dubbo/容错机制/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Filter/index.html b/categories/Filter/index.html index b66420851b..cb4af3636a 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 45b0b12cc8..1dd12b7507 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/Apollo/index.html b/categories/Java/Apollo/index.html index e35da1e998..fc84ac6757 100644 --- a/categories/Java/Apollo/index.html +++ b/categories/Java/Apollo/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/Java/Apollo/value/index.html b/categories/Java/Apollo/value/index.html index fdee58f30e..92db6df7b5 100644 --- a/categories/Java/Apollo/value/index.html +++ b/categories/Java/Apollo/value/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 23b236868a..687c7ab485 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 9c986e379c..6c4e585df0 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 658d00a06e..629d1f26a1 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 3e49053c4e..2ceb40f78b 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 59b864a38a..0bfd755957 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 d13491ff25..b6a5e8cd0c 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 1c1805b1a7..fde5f7e32b 100644 --- a/categories/Java/index.html +++ b/categories/Java/index.html @@ -29,7 +29,7 @@ - + @@ -40,7 +40,7 @@ - + - Category: java | Nicksxs's Blog + Category: Java | Nicksxs's Blog - - - - - - -meta-item" id="busuanzi_container_site_pv" style="display: none;"> - - - - - -
- - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Category: docker | Nicksxs's Blog + Category: Docker | Nicksxs's Blog - - - - - - -ocity/velocity.min.js"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Category: stack | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

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

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

stack + Category +

+
+ + +
+ 2020 +
+ + + +
+
+ + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/categories/leetcode/java/string/index.html b/categories/leetcode/java/string/index.html index c13c96d86f..9d7772e0f0 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 de7d33e94e..6e6a125d5b 100644 --- a/categories/leetcode/page/2/index.html +++ b/categories/leetcode/page/2/index.html @@ -217,6 +217,26 @@ 2015
+ +
@@ -436,20 +456,20 @@ @@ -474,7 +494,7 @@
- +
diff --git a/categories/linked-list/index.html b/categories/linked-list/index.html index 7e37d6a2cb..f50c4a0783 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 425761ce07..3ec78c8f3d 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 d2796a0883..bebc4fe262 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 3bb731f5ef..0e68113ee0 100644 --- a/categories/php/index.html +++ b/categories/php/index.html @@ -310,20 +310,20 @@ @@ -348,7 +348,7 @@
- +
diff --git a/categories/stack/index.html b/categories/stack/index.html new file mode 100644 index 0000000000..bc0e3a3d6e --- /dev/null +++ b/categories/stack/index.html @@ -0,0 +1,604 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Category: stack | Nicksxs's Blog + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+ + + +

Nicksxs's Blog

+ +
+

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

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

stack + Category +

+
+ + +
+ 2020 +
+ + + +
+
+ + + + + + + + +
+ + + + +
+ + + + + + + + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/categories/中间件/RocketMQ/index.html b/categories/中间件/RocketMQ/index.html index b5c012669b..d4ce0b29f2 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 adf62bcd4c..1de8d20ac1 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 6db4a3ea0d..abbccebbc0 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 dea55dd4e0..9472bd724a 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 017f3ebe51..c59a6e35f7 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 cee0c273b2..8d9eb01955 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 26e1992e0a..6b1b1a9d1b 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 a9c24b596e..195ad761d6 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 18601935b3..d84231801e 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 2df6b6310f..9af631da9b 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 0874580ca3..0a97137560 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 7b76b7e221..8d0a5a06e0 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 91dec9dab4..d0d748bec0 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 b70c105d52..fe14c18a6b 100644 --- a/categories/生活/index.html +++ b/categories/生活/index.html @@ -493,20 +493,20 @@ @@ -531,7 +531,7 @@
- +
diff --git a/categories/生活/page/2/index.html b/categories/生活/page/2/index.html index 1b5a184b59..b42b681ddc 100644 --- a/categories/生活/page/2/index.html +++ b/categories/生活/page/2/index.html @@ -313,20 +313,20 @@ @@ -351,7 +351,7 @@
- +
diff --git a/categories/生活/吐槽/index.html b/categories/生活/吐槽/index.html index 890ecb4c58..cc738ad661 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 5390d4fc1b..23889f1434 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 b4b5cf3ded..d3a4e9c273 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 e5500c6099..5c397acfa4 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 0eaf19f1ad..796155e88b 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 0c123580c1..e0198a22c1 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 3aed2284c5..c5b0408b92 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 c347dea638..231e46d1c1 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 68e418e438..9b1e8930ce 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 6d0eac8311..f0549f2991 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 e74f915fd3..f1f355d72e 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 9b4e2bc2d8..0abd311d6d 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 5c1113d65e..e327e137b3 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 c32776c9be..fb457de9b8 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 4a376efed6..d9fbb842ac 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 29dd58629e..51a88e7202 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: #528fa4; + background: #b30ebe; border-radius: 50%; content: ' '; display: inline-block; diff --git a/index.html b/index.html index 0b03036c71..b91304e7ec 100644 --- a/index.html +++ b/index.html @@ -203,6 +203,124 @@ +
+ + + + + +
+

+ + +

+ + +
+ + + + +
+ + +

题目介绍

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
设计一个栈,支持压栈,出站,获取栈顶元素,通过常数级复杂度获取栈中的最小元素

+
    +
  • push(x) – Push element x onto stack.
  • +
  • pop() – Removes the element on top of the stack.
  • +
  • top() – Get the top element.
  • +
  • getMin() – Retrieve the minimum element in the stack.
  • +
+

示例

Example 1:

+
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Input
["MinStack","push","push","push","getMin","pop","top","getMin"]
[[],[-2],[0],[-3],[],[],[],[]]

Output
[null,null,null,null,-3,null,0,-2]

Explanation
MinStack minStack = new MinStack();
minStack.push(-2);
minStack.push(0);
minStack.push(-3);
minStack.getMin(); // return -3
minStack.pop();
minStack.top(); // return 0
minStack.getMin(); // return -2
+ +

简要分析

其实现在大部分语言都自带类栈的数据结构,Java 也自带 stack 这个数据结构,所以这个题的主要难点的就是常数级的获取最小元素,最开始的想法是就一个栈外加一个记录最小值的变量就行了,但是仔细一想是不行的,因为随着元素被 pop 出去,这个最小值也可能需要梗着变化,就不太好判断了,所以后面是用了一个辅助栈。

+

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class MinStack {
// 这个作为主栈
Stack<Integer> s1 = new Stack<>();
// 这个作为辅助栈,放最小值的栈
Stack<Integer> s2 = new Stack<>();
/** initialize your data structure here. */
public MinStack() {

}

public void push(int x) {
// 放入主栈
s1.push(x);
// 当 s2 是空或者当前值是小于"等于" s2 栈顶时,压入辅助最小值的栈
// 注意这里的"等于"非常必要,因为当最小值有多个的情况下,也需要压入栈,否则在 pop 的时候就会不对等
if (s2.isEmpty() || x <= s2.peek()) {
s2.push(x);
}
}

public void pop() {
// 首先就是主栈要 pop,然后就是第二个了,跟上面的"等于"很有关系,
// 因为如果有两个最小值,如果前面等于的情况没有压栈,那这边相等的时候 pop 就会少一个了,可能就导致最小值不对了
int x = s1.pop();
if (x == s2.peek()) {
s2.pop();
}
}

public int top() {
// 栈顶的元素
return s1.peek();
}

public int getMin() {
// 辅助最小栈的栈顶
return s2.peek();
}
}
+ + + +
+ + + + + + +
+
+
+
+ + + + + + +
@@ -666,111 +784,6 @@ - - - -
- - - - - -
-

- - -

- - -
- - - - -
- - -

在前司和目前公司,用的配置中心都是使用的 Apollo,经过了业界验证,比较强大的配置管理系统,特别是在0.10 后开始支持对使用 value 注解的配置值进行自动更新,今天刚好有个同学问到我,就顺便写篇文章记录下,其实也是借助于 spring 强大的 bean 生命周期管理,可以实现BeanPostProcessor接口,使用postProcessBeforeInitialization方法,来对bean 内部的属性和方法进行判断,是否有 value 注解,如果有就是将它注册到一个 map 中,可以看到这个方法com.ctrip.framework.apollo.spring.annotation.SpringValueProcessor#processField

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@Override
protected void processField(Object bean, String beanName, Field field) {
// register @Value on field
Value value = field.getAnnotation(Value.class);
if (value == null) {
return;
}
Set<String> keys = placeholderHelper.extractPlaceholderKeys(value.value());

if (keys.isEmpty()) {
return;
}

for (String key : keys) {
SpringValue springValue = new SpringValue(key, value.value(), bean, beanName, field, false);
springValueRegistry.register(beanFactory, key, springValue);
logger.debug("Monitoring {}", springValue);
}
}
-

然后我们看下这个springValueRegistry是啥玩意

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class SpringValueRegistry {
private static final long CLEAN_INTERVAL_IN_SECONDS = 5;
private final Map<BeanFactory, Multimap<String, SpringValue>> registry = Maps.newConcurrentMap();
private final AtomicBoolean initialized = new AtomicBoolean(false);
private final Object LOCK = new Object();

public void register(BeanFactory beanFactory, String key, SpringValue springValue) {
if (!registry.containsKey(beanFactory)) {
synchronized (LOCK) {
if (!registry.containsKey(beanFactory)) {
registry.put(beanFactory, LinkedListMultimap.<String, SpringValue>create());
}
}
}

registry.get(beanFactory).put(key, springValue);

// lazy initialize
if (initialized.compareAndSet(false, true)) {
initialize();
}
}
-

这类其实就是个 map 来存放 springvalue,然后有com.ctrip.framework.apollo.spring.property.AutoUpdateConfigChangeListener来监听更新操作,当有变更时

-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@Override
public void onChange(ConfigChangeEvent changeEvent) {
Set<String> keys = changeEvent.changedKeys();
if (CollectionUtils.isEmpty(keys)) {
return;
}
for (String key : keys) {
// 1. check whether the changed key is relevant
Collection<SpringValue> targetValues = springValueRegistry.get(beanFactory, key);
if (targetValues == null || targetValues.isEmpty()) {
continue;
}

// 2. check whether the value is really changed or not (since spring property sources have hierarchies)
// 这里其实有一点比较绕,是因为 Apollo 里的 namespace 划分,会出现 key 相同,但是 namespace 不同的情况,所以会有个优先级存在,所以需要去校验 environment 里面的是否已经更新,如果未更新则表示不需要更新
if (!shouldTriggerAutoUpdate(changeEvent, key)) {
continue;
}

// 3. update the value
for (SpringValue val : targetValues) {
updateSpringValue(val);
}
}
}
-

其实原理很简单,就是得了解知道下

- - -
- - - - - - -
-
-
-
- - - - @@ -880,7 +893,7 @@
- +
diff --git a/leancloud.memo b/leancloud.memo index d1b04014a3..a17a7200f3 100644 --- a/leancloud.memo +++ b/leancloud.memo @@ -78,4 +78,5 @@ {"title":"聊聊 Java 的类加载机制一","url":"/2020/11/08/聊聊-Java-的类加载机制/"}, {"title":"Leetcode 234 回文联表(Palindrome Linked List) 题解分析","url":"/2020/11/15/Leetcode-234-回文联表-Palindrome-Linked-List-题解分析/"}, {"title":"聊聊 Dubbo 的容错机制","url":"/2020/11/22/聊聊-Dubbo-的容错机制/"}, +{"title":"从清华美院学姐聊聊我们身边的恶人","url":"/2020/11/29/从清华美院学姐聊聊我们身边的恶人/"}, ] \ No newline at end of file diff --git a/leancloud_counter_security_urls.json b/leancloud_counter_security_urls.json index d46c233ee0..e9923f1129 100644 --- a/leancloud_counter_security_urls.json +++ b/leancloud_counter_security_urls.json @@ -1 +1 @@ -[{"title":"2020年中总结","url":"/2020/07/11/2020年中总结/"},{"title":"村上春树《1Q84》读后感","url":"/2019/12/18/1Q84读后感/"},{"title":"2019年终总结","url":"/2020/02/01/2019年终总结/"},{"title":"add-two-number","url":"/2015/04/14/Add-Two-Number/"},{"title":"34_Search_for_a_Range","url":"/2016/08/14/34-Search-for-a-Range/"},{"title":"AbstractQueuedSynchronizer","url":"/2019/09/23/AbstractQueuedSynchronizer/"},{"title":"Comparator使用小记","url":"/2020/04/05/Comparator使用小记/"},{"title":"Clone Graph Part I","url":"/2014/12/30/Clone-Graph-Part-I/"},{"title":"Apollo 的 value 注解是怎么自动更新的","url":"/2020/11/01/Apollo-的-value-注解是怎么自动更新的/"},{"title":"G1收集器概述","url":"/2020/02/09/G1收集器概述/"},{"title":"Leetcode 104 二叉树的最大深度(Maximum Depth of Binary Tree) 题解分析","url":"/2020/10/25/Leetcode-104-二叉树的最大深度-Maximum-Depth-of-Binary-Tree-题解分析/"},{"title":"Leetcode 2 Add Two Numbers 题解分析","url":"/2020/10/11/Leetcode-2-Add-Two-Numbers-题解分析/"},{"title":"Leetcode 3 Longest Substring Without Repeating Characters 题解分析","url":"/2020/09/20/Leetcode-3-Longest-Substring-Without-Repeating-Characters-题解分析/"},{"title":"Linux 下 grep 命令的一点小技巧","url":"/2020/08/06/Linux-下-grep-命令的一点小技巧/"},{"title":"MFC 模态对话框","url":"/2014/12/24/MFC 模态对话框/"},{"title":"Maven实用小技巧","url":"/2020/02/16/Maven实用小技巧/"},{"title":"leetcode no.3","url":"/2015/04/15/Leetcode-No-3/"},{"title":"Path Sum","url":"/2015/01/04/Path-Sum/"},{"title":"Reverse Bits","url":"/2015/03/11/Reverse-Bits/"},{"title":"Redis_分布式锁","url":"/2019/12/10/Redis-Part-1/"},{"title":"Number of 1 Bits","url":"/2015/03/11/Number-Of-1-Bits/"},{"title":"ambari-summary","url":"/2017/05/09/ambari-summary/"},{"title":"two sum","url":"/2015/01/14/Two-Sum/"},{"title":"Reverse Integer","url":"/2015/03/13/Reverse-Integer/"},{"title":"docker-mysql-cluster","url":"/2016/08/14/docker-mysql-cluster/"},{"title":"binary-watch","url":"/2016/09/29/binary-watch/"},{"title":"docker比一般多一点的初学者介绍","url":"/2020/03/08/docker比一般多一点的初学者介绍/"},{"title":"docker比一般多一点的初学者介绍三","url":"/2020/03/21/docker比一般多一点的初学者介绍三/"},{"title":"docker使用中发现的echo命令的一个小技巧及其他","url":"/2020/03/29/echo命令的一个小技巧/"},{"title":"docker比一般多一点的初学者介绍二","url":"/2020/03/15/docker比一般多一点的初学者介绍二/"},{"title":"invert-binary-tree","url":"/2015/06/22/invert-binary-tree/"},{"title":"gogs使用webhook部署react单页应用","url":"/2020/02/22/gogs使用webhook部署react单页应用/"},{"title":"minimum-size-subarray-sum-209","url":"/2016/10/11/minimum-size-subarray-sum-209/"},{"title":"C++ 指针使用中的一个小问题","url":"/2014/12/23/my-new-post/"},{"title":"mybatis 的 $ 和 # 是有啥区别","url":"/2020/09/06/mybatis-的-和-是有啥区别/"},{"title":"openresty","url":"/2019/06/18/openresty/"},{"title":"php-abstract-class-and-interface","url":"/2016/11/10/php-abstract-class-and-interface/"},{"title":"pcre-intro-and-a-simple-package","url":"/2015/01/16/pcre-intro-and-a-simple-package/"},{"title":"rabbitmq-tips","url":"/2017/04/25/rabbitmq-tips/"},{"title":"redis数据结构介绍三-第三部分 整数集合","url":"/2020/01/10/redis数据结构介绍三/"},{"title":"redis数据结构介绍二-第二部分 跳表","url":"/2020/01/04/redis数据结构介绍二/"},{"title":"Leetcode 234 回文联表(Palindrome Linked List) 题解分析","url":"/2020/11/15/Leetcode-234-回文联表-Palindrome-Linked-List-题解分析/"},{"title":"redis数据结构介绍五-第五部分 对象","url":"/2020/01/20/redis数据结构介绍五/"},{"title":"redis数据结构介绍四-第四部分 压缩表","url":"/2020/01/19/redis数据结构介绍四/"},{"title":"spark-little-tips","url":"/2017/03/28/spark-little-tips/"},{"title":"summary-ranges-228","url":"/2016/10/12/summary-ranges-228/"},{"title":"swoole-websocket-test","url":"/2016/07/13/swoole-websocket-test/"},{"title":"周末我在老丈人家打了天小工","url":"/2020/08/16/周末我在老丈人家打了天小工/"},{"title":"在老丈人家的小工记五","url":"/2020/10/18/在老丈人家的小工记五/"},{"title":"从清华美院学姐聊聊我们身边的恶人","url":"/2020/11/29/从清华美院学姐聊聊我们身边的恶人/"},{"title":"在老丈人家的小工记三","url":"/2020/09/13/在老丈人家的小工记三/"},{"title":"在老丈人家的小工记四","url":"/2020/09/26/在老丈人家的小工记四/"},{"title":"寄生虫观后感","url":"/2020/03/01/寄生虫观后感/"},{"title":"我是如何走上跑步这条不归路的","url":"/2020/07/26/我是如何走上跑步这条不归路的/"},{"title":"聊聊 Dubbo 的 SPI","url":"/2020/05/31/聊聊-Dubbo-的-SPI/"},{"title":"聊聊 Dubbo 的 SPI 续之自适应拓展","url":"/2020/06/06/聊聊-Dubbo-的-SPI-续之自适应拓展/"},{"title":"聊聊 Java 的类加载机制一","url":"/2020/11/08/聊聊-Java-的类加载机制/"},{"title":"聊聊 mysql 的 MVCC 续篇","url":"/2020/05/02/聊聊-mysql-的-MVCC-续篇/"},{"title":"聊聊 mysql 的 MVCC 续续篇之锁分析","url":"/2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/"},{"title":"聊聊 mysql 的 MVCC","url":"/2020/04/26/聊聊-mysql-的-MVCC/"},{"title":"聊聊Java中的单例模式","url":"/2019/12/21/聊聊Java中的单例模式/"},{"title":"聊聊一次 brew update 引发的血案","url":"/2020/06/13/聊聊一次-brew-update-引发的血案/"},{"title":"聊聊我刚学会的应用诊断方法","url":"/2020/05/22/聊聊我刚学会的应用诊断方法/"},{"title":"这周末我又在老丈人家打了天小工","url":"/2020/08/30/这周末我又在老丈人家打了天小工/"},{"title":"mybatis 的缓存是怎么回事","url":"/2020/10/03/mybatis-的缓存是怎么回事/"},{"title":"redis数据结构介绍-第一部分 SDS,链表,字典","url":"/2019/12/26/redis数据结构介绍/"},{"title":"redis数据结构介绍六 快表","url":"/2020/01/22/redis数据结构介绍六/"},{"title":"介绍一下 RocketMQ","url":"/2020/06/21/介绍一下-RocketMQ/"},{"title":"聊聊 Dubbo 的容错机制","url":"/2020/11/22/聊聊-Dubbo-的容错机制/"},{"title":"聊聊我理解的分布式事务","url":"/2020/05/17/聊聊我理解的分布式事务/"},{"title":"Filter, Interceptor, Aop, 啥, 啥, 啥? 这些都是啥?","url":"/2020/08/22/Filter-Intercepter-Aop-啥-啥-啥-这些都是啥/"},{"title":"redis系列介绍七-过期策略","url":"/2020/04/12/redis系列介绍七/"},{"title":"JVM源码分析之G1垃圾收集器分析一","url":"/2019/12/07/JVM-G1-Part-1/"},{"title":"redis系列介绍八-淘汰策略","url":"/2020/04/18/redis系列介绍八/"},{"title":"聊一下 RocketMQ 的 NameServer 源码","url":"/2020/07/05/聊一下-RocketMQ-的-NameServer-源码/"},{"title":"聊聊 RocketMQ 的 Broker 源码","url":"/2020/07/19/聊聊-RocketMQ-的-Broker-源码/"},{"title":"聊聊 Java 自带的那些*逆天*工具","url":"/2020/08/02/聊聊-Java-自带的那些逆天工具/"},{"title":"聊一下 RocketMQ 的 DefaultMQPushConsumer 源码","url":"/2020/06/26/聊一下-RocketMQ-的-Consumer/"}] \ No newline at end of file +[{"title":"村上春树《1Q84》读后感","url":"/2019/12/18/1Q84读后感/"},{"title":"add-two-number","url":"/2015/04/14/Add-Two-Number/"},{"title":"2019年终总结","url":"/2020/02/01/2019年终总结/"},{"title":"2020年中总结","url":"/2020/07/11/2020年中总结/"},{"title":"34_Search_for_a_Range","url":"/2016/08/14/34-Search-for-a-Range/"},{"title":"Comparator使用小记","url":"/2020/04/05/Comparator使用小记/"},{"title":"Clone Graph Part I","url":"/2014/12/30/Clone-Graph-Part-I/"},{"title":"Apollo 的 value 注解是怎么自动更新的","url":"/2020/11/01/Apollo-的-value-注解是怎么自动更新的/"},{"title":"Leetcode 155 最小栈(Min Stack) 题解分析","url":"/2020/12/06/Leetcode-155-最小栈-Min-Stack-题解分析/"},{"title":"G1收集器概述","url":"/2020/02/09/G1收集器概述/"},{"title":"AbstractQueuedSynchronizer","url":"/2019/09/23/AbstractQueuedSynchronizer/"},{"title":"Leetcode 104 二叉树的最大深度(Maximum Depth of Binary Tree) 题解分析","url":"/2020/10/25/Leetcode-104-二叉树的最大深度-Maximum-Depth-of-Binary-Tree-题解分析/"},{"title":"leetcode no.3","url":"/2015/04/15/Leetcode-No-3/"},{"title":"Leetcode 3 Longest Substring Without Repeating Characters 题解分析","url":"/2020/09/20/Leetcode-3-Longest-Substring-Without-Repeating-Characters-题解分析/"},{"title":"MFC 模态对话框","url":"/2014/12/24/MFC 模态对话框/"},{"title":"Linux 下 grep 命令的一点小技巧","url":"/2020/08/06/Linux-下-grep-命令的一点小技巧/"},{"title":"Leetcode 234 回文联表(Palindrome Linked List) 题解分析","url":"/2020/11/15/Leetcode-234-回文联表-Palindrome-Linked-List-题解分析/"},{"title":"Maven实用小技巧","url":"/2020/02/16/Maven实用小技巧/"},{"title":"Leetcode 2 Add Two Numbers 题解分析","url":"/2020/10/11/Leetcode-2-Add-Two-Numbers-题解分析/"},{"title":"Number of 1 Bits","url":"/2015/03/11/Number-Of-1-Bits/"},{"title":"Path Sum","url":"/2015/01/04/Path-Sum/"},{"title":"Reverse Bits","url":"/2015/03/11/Reverse-Bits/"},{"title":"Redis_分布式锁","url":"/2019/12/10/Redis-Part-1/"},{"title":"binary-watch","url":"/2016/09/29/binary-watch/"},{"title":"ambari-summary","url":"/2017/05/09/ambari-summary/"},{"title":"Reverse Integer","url":"/2015/03/13/Reverse-Integer/"},{"title":"docker-mysql-cluster","url":"/2016/08/14/docker-mysql-cluster/"},{"title":"two sum","url":"/2015/01/14/Two-Sum/"},{"title":"docker比一般多一点的初学者介绍","url":"/2020/03/08/docker比一般多一点的初学者介绍/"},{"title":"docker比一般多一点的初学者介绍三","url":"/2020/03/21/docker比一般多一点的初学者介绍三/"},{"title":"docker比一般多一点的初学者介绍二","url":"/2020/03/15/docker比一般多一点的初学者介绍二/"},{"title":"docker使用中发现的echo命令的一个小技巧及其他","url":"/2020/03/29/echo命令的一个小技巧/"},{"title":"gogs使用webhook部署react单页应用","url":"/2020/02/22/gogs使用webhook部署react单页应用/"},{"title":"invert-binary-tree","url":"/2015/06/22/invert-binary-tree/"},{"title":"minimum-size-subarray-sum-209","url":"/2016/10/11/minimum-size-subarray-sum-209/"},{"title":"C++ 指针使用中的一个小问题","url":"/2014/12/23/my-new-post/"},{"title":"mybatis 的 $ 和 # 是有啥区别","url":"/2020/09/06/mybatis-的-和-是有啥区别/"},{"title":"openresty","url":"/2019/06/18/openresty/"},{"title":"pcre-intro-and-a-simple-package","url":"/2015/01/16/pcre-intro-and-a-simple-package/"},{"title":"php-abstract-class-and-interface","url":"/2016/11/10/php-abstract-class-and-interface/"},{"title":"rabbitmq-tips","url":"/2017/04/25/rabbitmq-tips/"},{"title":"redis数据结构介绍三-第三部分 整数集合","url":"/2020/01/10/redis数据结构介绍三/"},{"title":"redis数据结构介绍二-第二部分 跳表","url":"/2020/01/04/redis数据结构介绍二/"},{"title":"redis数据结构介绍五-第五部分 对象","url":"/2020/01/20/redis数据结构介绍五/"},{"title":"redis数据结构介绍四-第四部分 压缩表","url":"/2020/01/19/redis数据结构介绍四/"},{"title":"spark-little-tips","url":"/2017/03/28/spark-little-tips/"},{"title":"summary-ranges-228","url":"/2016/10/12/summary-ranges-228/"},{"title":"swoole-websocket-test","url":"/2016/07/13/swoole-websocket-test/"},{"title":"周末我在老丈人家打了天小工","url":"/2020/08/16/周末我在老丈人家打了天小工/"},{"title":"从清华美院学姐聊聊我们身边的恶人","url":"/2020/11/29/从清华美院学姐聊聊我们身边的恶人/"},{"title":"在老丈人家的小工记三","url":"/2020/09/13/在老丈人家的小工记三/"},{"title":"在老丈人家的小工记五","url":"/2020/10/18/在老丈人家的小工记五/"},{"title":"在老丈人家的小工记四","url":"/2020/09/26/在老丈人家的小工记四/"},{"title":"寄生虫观后感","url":"/2020/03/01/寄生虫观后感/"},{"title":"我是如何走上跑步这条不归路的","url":"/2020/07/26/我是如何走上跑步这条不归路的/"},{"title":"聊聊 Dubbo 的 SPI","url":"/2020/05/31/聊聊-Dubbo-的-SPI/"},{"title":"聊聊 Dubbo 的 SPI 续之自适应拓展","url":"/2020/06/06/聊聊-Dubbo-的-SPI-续之自适应拓展/"},{"title":"聊聊 Java 的类加载机制一","url":"/2020/11/08/聊聊-Java-的类加载机制/"},{"title":"聊聊 mysql 的 MVCC 续篇","url":"/2020/05/02/聊聊-mysql-的-MVCC-续篇/"},{"title":"聊聊 mysql 的 MVCC 续续篇之锁分析","url":"/2020/05/10/聊聊-mysql-的-MVCC-续续篇之加锁分析/"},{"title":"聊聊 mysql 的 MVCC","url":"/2020/04/26/聊聊-mysql-的-MVCC/"},{"title":"聊聊Java中的单例模式","url":"/2019/12/21/聊聊Java中的单例模式/"},{"title":"聊聊一次 brew update 引发的血案","url":"/2020/06/13/聊聊一次-brew-update-引发的血案/"},{"title":"聊聊我刚学会的应用诊断方法","url":"/2020/05/22/聊聊我刚学会的应用诊断方法/"},{"title":"这周末我又在老丈人家打了天小工","url":"/2020/08/30/这周末我又在老丈人家打了天小工/"},{"title":"mybatis 的缓存是怎么回事","url":"/2020/10/03/mybatis-的缓存是怎么回事/"},{"title":"redis数据结构介绍-第一部分 SDS,链表,字典","url":"/2019/12/26/redis数据结构介绍/"},{"title":"redis数据结构介绍六 快表","url":"/2020/01/22/redis数据结构介绍六/"},{"title":"介绍一下 RocketMQ","url":"/2020/06/21/介绍一下-RocketMQ/"},{"title":"聊聊 Dubbo 的容错机制","url":"/2020/11/22/聊聊-Dubbo-的容错机制/"},{"title":"聊聊我理解的分布式事务","url":"/2020/05/17/聊聊我理解的分布式事务/"},{"title":"Filter, Interceptor, Aop, 啥, 啥, 啥? 这些都是啥?","url":"/2020/08/22/Filter-Intercepter-Aop-啥-啥-啥-这些都是啥/"},{"title":"redis系列介绍七-过期策略","url":"/2020/04/12/redis系列介绍七/"},{"title":"JVM源码分析之G1垃圾收集器分析一","url":"/2019/12/07/JVM-G1-Part-1/"},{"title":"redis系列介绍八-淘汰策略","url":"/2020/04/18/redis系列介绍八/"},{"title":"聊一下 RocketMQ 的 NameServer 源码","url":"/2020/07/05/聊一下-RocketMQ-的-NameServer-源码/"},{"title":"聊聊 RocketMQ 的 Broker 源码","url":"/2020/07/19/聊聊-RocketMQ-的-Broker-源码/"},{"title":"聊聊 Java 自带的那些*逆天*工具","url":"/2020/08/02/聊聊-Java-自带的那些逆天工具/"},{"title":"聊一下 RocketMQ 的 DefaultMQPushConsumer 源码","url":"/2020/06/26/聊一下-RocketMQ-的-Consumer/"}] \ No newline at end of file diff --git a/lib/pace/README.html b/lib/pace/README.html index 5b6f0f725d..934ff5999d 100644 --- a/lib/pace/README.html +++ b/lib/pace/README.html @@ -351,20 +351,20 @@ @@ -389,7 +389,7 @@
- +
diff --git a/page/10/index.html b/page/10/index.html index 595e65c27a..7a45a7b569 100644 --- a/page/10/index.html +++ b/page/10/index.html @@ -204,7 +204,7 @@
- +