From 69352a0f663a9da8840599eb97b7553cb06f3c63 Mon Sep 17 00:00:00 2001 From: CyC2018 <1029579233@qq.com> Date: Wed, 13 Feb 2019 16:00:12 +0800 Subject: [PATCH] auto commit --- docs/notes/Docker.md | 2 +- docs/notes/Git.md | 2 +- docs/notes/HTTP.md | 2 +- docs/notes/Java IO.md | 2 +- docs/notes/Java 基础.md | 2 +- docs/notes/Java 容器.md | 2 +- docs/notes/Java 并发.md | 2 +- docs/notes/Java 虚拟机.md | 2 +- docs/notes/Leetcode 题解.md | 2 +- docs/notes/Leetcode-Database 题解.md | 2 +- docs/notes/Linux.md | 2 +- docs/notes/MySQL.md | 2 +- docs/notes/Redis.md | 2 +- docs/notes/SQL.md | 2 +- docs/notes/Socket.md | 2 +- docs/notes/代码可读性.md | 2 +- docs/notes/代码风格规范.md | 2 +- docs/notes/分布式.md | 2 +- docs/notes/剑指 offer 题解.md | 11 ++++++----- docs/notes/攻击技术.md | 2 +- docs/notes/数据库系统原理.md | 2 +- docs/notes/构建工具.md | 2 +- docs/notes/正则表达式.md | 2 +- docs/notes/消息队列.md | 2 +- docs/notes/算法.md | 2 +- docs/notes/系统设计基础.md | 2 +- docs/notes/缓存.md | 2 +- docs/notes/计算机操作系统.md | 2 +- docs/notes/计算机网络.md | 2 +- docs/notes/设计模式.md | 2 +- docs/notes/集群.md | 2 +- docs/notes/面向对象思想.md | 2 +- 32 files changed, 37 insertions(+), 36 deletions(-) diff --git a/docs/notes/Docker.md b/docs/notes/Docker.md index 8d307a32..9e8e86c5 100644 --- a/docs/notes/Docker.md +++ b/docs/notes/Docker.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、解决的问题](#一解决的问题) * [二、与虚拟机的比较](#二与虚拟机的比较) diff --git a/docs/notes/Git.md b/docs/notes/Git.md index 1b932ea9..aaf943bf 100644 --- a/docs/notes/Git.md +++ b/docs/notes/Git.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [集中式与分布式](#集中式与分布式) * [中心服务器](#中心服务器) diff --git a/docs/notes/HTTP.md b/docs/notes/HTTP.md index 0b1e7f45..e68b3733 100644 --- a/docs/notes/HTTP.md +++ b/docs/notes/HTTP.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一 、基础概念](#一-基础概念) * [URI](#uri) diff --git a/docs/notes/Java IO.md b/docs/notes/Java IO.md index 5cd2c164..34e507bc 100644 --- a/docs/notes/Java IO.md +++ b/docs/notes/Java IO.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、概览](#一概览) * [二、磁盘操作](#二磁盘操作) diff --git a/docs/notes/Java 基础.md b/docs/notes/Java 基础.md index d057f460..fe408c2f 100644 --- a/docs/notes/Java 基础.md +++ b/docs/notes/Java 基础.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、数据类型](#一数据类型) * [包装类型](#包装类型) diff --git a/docs/notes/Java 容器.md b/docs/notes/Java 容器.md index b8d63ee5..2ef052a4 100644 --- a/docs/notes/Java 容器.md +++ b/docs/notes/Java 容器.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、概览](#一概览) * [Collection](#collection) diff --git a/docs/notes/Java 并发.md b/docs/notes/Java 并发.md index 1fb8c09d..b79ad371 100644 --- a/docs/notes/Java 并发.md +++ b/docs/notes/Java 并发.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、线程状态转换](#一线程状态转换) * [新建(New)](#新建new) diff --git a/docs/notes/Java 虚拟机.md b/docs/notes/Java 虚拟机.md index 2e84b2d0..0b5611c9 100644 --- a/docs/notes/Java 虚拟机.md +++ b/docs/notes/Java 虚拟机.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、运行时数据区域](#一运行时数据区域) * [程序计数器](#程序计数器) diff --git a/docs/notes/Leetcode 题解.md b/docs/notes/Leetcode 题解.md index 333d26ab..9065e7e1 100644 --- a/docs/notes/Leetcode 题解.md +++ b/docs/notes/Leetcode 题解.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [算法思想](#算法思想) * [双指针](#双指针) diff --git a/docs/notes/Leetcode-Database 题解.md b/docs/notes/Leetcode-Database 题解.md index 771f4097..d608c2fb 100644 --- a/docs/notes/Leetcode-Database 题解.md +++ b/docs/notes/Leetcode-Database 题解.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [595. Big Countries](#595-big-countries) * [627. Swap Salary](#627-swap-salary) diff --git a/docs/notes/Linux.md b/docs/notes/Linux.md index 53b42aa0..3c08ae55 100644 --- a/docs/notes/Linux.md +++ b/docs/notes/Linux.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、常用操作以及概念](#一常用操作以及概念) * [快捷键](#快捷键) diff --git a/docs/notes/MySQL.md b/docs/notes/MySQL.md index 2e02dd13..17976a72 100644 --- a/docs/notes/MySQL.md +++ b/docs/notes/MySQL.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、索引](#一索引) * [B+ Tree 原理](#b-tree-原理) diff --git a/docs/notes/Redis.md b/docs/notes/Redis.md index 5bc45b1a..340455a2 100644 --- a/docs/notes/Redis.md +++ b/docs/notes/Redis.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、概述](#一概述) * [二、数据类型](#二数据类型) diff --git a/docs/notes/SQL.md b/docs/notes/SQL.md index 6c91b614..e7ed9b90 100644 --- a/docs/notes/SQL.md +++ b/docs/notes/SQL.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、基础](#一基础) * [二、创建表](#二创建表) diff --git a/docs/notes/Socket.md b/docs/notes/Socket.md index eb719e59..e08d04b3 100644 --- a/docs/notes/Socket.md +++ b/docs/notes/Socket.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、I/O 模型](#一io-模型) * [阻塞式 I/O](#阻塞式-io) diff --git a/docs/notes/代码可读性.md b/docs/notes/代码可读性.md index 7762ae13..8ca4c798 100644 --- a/docs/notes/代码可读性.md +++ b/docs/notes/代码可读性.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、可读性的重要性](#一可读性的重要性) * [二、用名字表达代码含义](#二用名字表达代码含义) diff --git a/docs/notes/代码风格规范.md b/docs/notes/代码风格规范.md index 18bb44a0..90ee45a2 100644 --- a/docs/notes/代码风格规范.md +++ b/docs/notes/代码风格规范.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) diff --git a/docs/notes/分布式.md b/docs/notes/分布式.md index 564149e9..1f44dc2d 100644 --- a/docs/notes/分布式.md +++ b/docs/notes/分布式.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、分布式锁](#一分布式锁) * [数据库的唯一索引](#数据库的唯一索引) diff --git a/docs/notes/剑指 offer 题解.md b/docs/notes/剑指 offer 题解.md index 45ae30d0..fd1c084e 100644 --- a/docs/notes/剑指 offer 题解.md +++ b/docs/notes/剑指 offer 题解.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [3. 数组中重复的数字](#3-数组中重复的数字) * [4. 二维数组中的查找](#4-二维数组中的查找) @@ -244,10 +244,11 @@ public String replaceSpace(StringBuffer str) { ```java public ArrayList printListFromTailToHead(ListNode listNode) { - if (listNode == null) - return new ArrayList<>(); - ArrayList ret = printListFromTailToHead(listNode.next); - ret.add(listNode.val); + ArrayList ret = new ArrayList<>(); + if (listNode != null) { + ret.addAll(printListFromTailToHead(listNode.next)); + ret.add(listNode.val); + } return ret; } ``` diff --git a/docs/notes/攻击技术.md b/docs/notes/攻击技术.md index 6194c626..49ed6b4b 100644 --- a/docs/notes/攻击技术.md +++ b/docs/notes/攻击技术.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、跨站脚本攻击](#一跨站脚本攻击) * [二、跨站请求伪造](#二跨站请求伪造) diff --git a/docs/notes/数据库系统原理.md b/docs/notes/数据库系统原理.md index 75f53220..870111cc 100644 --- a/docs/notes/数据库系统原理.md +++ b/docs/notes/数据库系统原理.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、事务](#一事务) * [概念](#概念) diff --git a/docs/notes/构建工具.md b/docs/notes/构建工具.md index 3e47514f..2025e0f0 100644 --- a/docs/notes/构建工具.md +++ b/docs/notes/构建工具.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、构建工具的作用](#一构建工具的作用) * [二、Java 主流构建工具](#二java-主流构建工具) diff --git a/docs/notes/正则表达式.md b/docs/notes/正则表达式.md index 27e265e7..9b55f63d 100644 --- a/docs/notes/正则表达式.md +++ b/docs/notes/正则表达式.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、概述](#一概述) * [二、匹配单个字符](#二匹配单个字符) diff --git a/docs/notes/消息队列.md b/docs/notes/消息队列.md index 9b4125cb..caa6d2eb 100644 --- a/docs/notes/消息队列.md +++ b/docs/notes/消息队列.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、消息模型](#一消息模型) * [点对点](#点对点) diff --git a/docs/notes/算法.md b/docs/notes/算法.md index e9e497f0..76d66724 100644 --- a/docs/notes/算法.md +++ b/docs/notes/算法.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、前言](#一前言) * [二、算法分析](#二算法分析) diff --git a/docs/notes/系统设计基础.md b/docs/notes/系统设计基础.md index 06681eaa..2d4d5aa1 100644 --- a/docs/notes/系统设计基础.md +++ b/docs/notes/系统设计基础.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、性能](#一性能) * [二、伸缩性](#二伸缩性) diff --git a/docs/notes/缓存.md b/docs/notes/缓存.md index 4b8c91d6..a2b975dd 100644 --- a/docs/notes/缓存.md +++ b/docs/notes/缓存.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、缓存特征](#一缓存特征) * [二、LRU](#二lru) diff --git a/docs/notes/计算机操作系统.md b/docs/notes/计算机操作系统.md index 079d6dc9..01cea91a 100644 --- a/docs/notes/计算机操作系统.md +++ b/docs/notes/计算机操作系统.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、概述](#一概述) * [基本特征](#基本特征) diff --git a/docs/notes/计算机网络.md b/docs/notes/计算机网络.md index 27a342cf..c99f5128 100644 --- a/docs/notes/计算机网络.md +++ b/docs/notes/计算机网络.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、概述](#一概述) * [网络的网络](#网络的网络) diff --git a/docs/notes/设计模式.md b/docs/notes/设计模式.md index 4f28cdbf..47f0522d 100644 --- a/docs/notes/设计模式.md +++ b/docs/notes/设计模式.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、概述](#一概述) * [二、创建型](#二创建型) diff --git a/docs/notes/集群.md b/docs/notes/集群.md index 2c6e29ec..2e75f19b 100644 --- a/docs/notes/集群.md +++ b/docs/notes/集群.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、负载均衡](#一负载均衡) * [负载均衡算法](#负载均衡算法) diff --git a/docs/notes/面向对象思想.md b/docs/notes/面向对象思想.md index 46fd2596..acef2475 100644 --- a/docs/notes/面向对象思想.md +++ b/docs/notes/面向对象思想.md @@ -1,4 +1,4 @@ -[🍉 点击订阅面试进阶专栏 ](https://xiaozhuanlan.com/CyC2018) +[🍉 点击阅读面试进阶指南 ](https://github.com/CyC2018/Backend-Interview-Guide) * [一、三大特性](#一三大特性) * [封装](#封装)