From 688398585f6134bb0508e9a4041dd4e6c91d49a6 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Tue, 14 May 2019 17:05:21 +0800 Subject: [PATCH] auto commit --- docs/notes/Leetcode 题解 - 二分查找.md | 2 +- docs/notes/Leetcode 题解 - 分治.md | 3 +++ docs/notes/MySQL.md | 2 +- notes/Leetcode 题解 - 二分查找.md | 2 +- notes/Leetcode 题解 - 分治.md | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/notes/Leetcode 题解 - 二分查找.md b/docs/notes/Leetcode 题解 - 二分查找.md index d5dd007b..7ff8762d 100644 --- a/docs/notes/Leetcode 题解 - 二分查找.md +++ b/docs/notes/Leetcode 题解 - 二分查找.md @@ -257,7 +257,7 @@ public int findMin(int[] nums) { ## 6. 查找区间 -[34. Search for a Range (Medium)](https://leetcode.com/problems/search-for-a-range/description/) +[34. Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/) ```html Input: nums = [5,7,7,8,8,10], target = 8 diff --git a/docs/notes/Leetcode 题解 - 分治.md b/docs/notes/Leetcode 题解 - 分治.md index cafb3a45..b67064a6 100644 --- a/docs/notes/Leetcode 题解 - 分治.md +++ b/docs/notes/Leetcode 题解 - 分治.md @@ -77,6 +77,9 @@ The above output corresponds to the 5 unique BST's shown below: ```java public List generateTrees(int n) { + if (n < 1) { + return new LinkedList(); + } return generateSubtrees(1, n); } diff --git a/docs/notes/MySQL.md b/docs/notes/MySQL.md index 166cf6b9..a2daf751 100644 --- a/docs/notes/MySQL.md +++ b/docs/notes/MySQL.md @@ -324,7 +324,7 @@ MySQL 提供了两种相似的日期时间类型:DATETIME 和 TIMESTAMP。 ### 1. DATETIME -能够保存从 1001 年到 9999 年的日期和时间,精度为秒,使用 8 字节的存储空间。 +能够保存从 1000 年到 9999 年的日期和时间,精度为秒,使用 8 字节的存储空间。 它与时区无关。 diff --git a/notes/Leetcode 题解 - 二分查找.md b/notes/Leetcode 题解 - 二分查找.md index d2c64f97..7ff8762d 100644 --- a/notes/Leetcode 题解 - 二分查找.md +++ b/notes/Leetcode 题解 - 二分查找.md @@ -257,7 +257,7 @@ public int findMin(int[] nums) { ## 6. 查找区间 -[34. Find First and Last Position of Element in Sorted Array (Medium)](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/) +[34. Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/) ```html Input: nums = [5,7,7,8,8,10], target = 8 diff --git a/notes/Leetcode 题解 - 分治.md b/notes/Leetcode 题解 - 分治.md index 71df3d18..b67064a6 100644 --- a/notes/Leetcode 题解 - 分治.md +++ b/notes/Leetcode 题解 - 分治.md @@ -77,7 +77,7 @@ The above output corresponds to the 5 unique BST's shown below: ```java public List generateTrees(int n) { - if(n < 1){ + if (n < 1) { return new LinkedList(); } return generateSubtrees(1, n);