Skip to content

Commit bcd9eed

Browse files
committed
auto commit
1 parent 5692a43 commit bcd9eed

File tree

2 files changed

+42
-14
lines changed

2 files changed

+42
-14
lines changed

docs/notes/Leetcode 题解 - 双指针.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
# 1. 有序数组的 Two Sum
1515

16-
[167\. Two Sum II - Input array is sorted (Easy)](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/description/)
16+
167\. Two Sum II - Input array is sorted (Easy)
17+
18+
[Leetcode](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/description/) / [力扣](https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/description/)
1719

1820
```html
1921
Input: numbers={2, 7, 11, 15}, target=9
@@ -47,7 +49,9 @@ public int[] twoSum(int[] numbers, int target) {
4749

4850
# 2. 两数平方和
4951

50-
[633. Sum of Square Numbers (Easy)](https://leetcode.com/problems/sum-of-square-numbers/description/)
52+
633. Sum of Square Numbers (Easy)
53+
54+
[Leetcode](https://leetcode.com/problems/sum-of-square-numbers/description/) / [力扣](https://leetcode-cn.com/problems/sum-of-square-numbers/description/)
5155

5256
```html
5357
Input: 5
@@ -76,7 +80,9 @@ public boolean judgeSquareSum(int c) {
7680

7781
# 3. 反转字符串中的元音字符
7882

79-
[345. Reverse Vowels of a String (Easy)](https://leetcode.com/problems/reverse-vowels-of-a-string/description/)
83+
345. Reverse Vowels of a String (Easy)
84+
85+
[Leetcode](https://leetcode.com/problems/reverse-vowels-of-a-string/description/) / [力扣](https://leetcode-cn.com/problems/reverse-vowels-of-a-string/description/)
8086

8187
```html
8288
Given s = "leetcode", return "leotcede".
@@ -109,7 +115,9 @@ public String reverseVowels(String s) {
109115

110116
# 4. 回文字符串
111117

112-
[680. Valid Palindrome II (Easy)](https://leetcode.com/problems/valid-palindrome-ii/description/)
118+
680. Valid Palindrome II (Easy)
119+
120+
[Leetcode](https://leetcode.com/problems/valid-palindrome-ii/description/) / [力扣](https://leetcode-cn.com/problems/valid-palindrome-ii/description/)
113121

114122
```html
115123
Input: "abca"
@@ -141,7 +149,9 @@ private boolean isPalindrome(String s, int i, int j) {
141149

142150
# 5. 归并两个有序数组
143151

144-
[88. Merge Sorted Array (Easy)](https://leetcode.com/problems/merge-sorted-array/description/)
152+
88. Merge Sorted Array (Easy)
153+
154+
[Leetcode](https://leetcode.com/problems/merge-sorted-array/description/) / [力扣](https://leetcode-cn.com/problems/merge-sorted-array/description/)
145155

146156
```html
147157
Input:
@@ -175,7 +185,9 @@ public void merge(int[] nums1, int m, int[] nums2, int n) {
175185

176186
# 6. 判断链表是否存在环
177187

178-
[141. Linked List Cycle (Easy)](https://leetcode.com/problems/linked-list-cycle/description/)
188+
141. Linked List Cycle (Easy)
189+
190+
[Leetcode](https://leetcode.com/problems/linked-list-cycle/description/) / [力扣](https://leetcode-cn.com/problems/linked-list-cycle/description/)
179191

180192
使用双指针,一个指针每次移动一个节点,一个指针每次移动两个节点,如果存在环,那么这两个指针一定会相遇。
181193

@@ -198,7 +210,9 @@ public boolean hasCycle(ListNode head) {
198210

199211
# 7. 最长子序列
200212

201-
[524. Longest Word in Dictionary through Deleting (Medium)](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/description/)
213+
524. Longest Word in Dictionary through Deleting (Medium)
214+
215+
[Leetcode](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/description/) / [力扣](https://leetcode-cn.com/problems/longest-word-in-dictionary-through-deleting/description/)
202216

203217
```
204218
Input:

notes/Leetcode 题解 - 双指针.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
# 1. 有序数组的 Two Sum
1515

16-
[167\. Two Sum II - Input array is sorted (Easy)](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/description/)
16+
167\. Two Sum II - Input array is sorted (Easy)
17+
18+
[Leetcode](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/description/) / [力扣](https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/description/)
1719

1820
```html
1921
Input: numbers={2, 7, 11, 15}, target=9
@@ -47,7 +49,9 @@ public int[] twoSum(int[] numbers, int target) {
4749

4850
# 2. 两数平方和
4951

50-
[633. Sum of Square Numbers (Easy)](https://leetcode.com/problems/sum-of-square-numbers/description/)
52+
633. Sum of Square Numbers (Easy)
53+
54+
[Leetcode](https://leetcode.com/problems/sum-of-square-numbers/description/) / [力扣](https://leetcode-cn.com/problems/sum-of-square-numbers/description/)
5155

5256
```html
5357
Input: 5
@@ -76,7 +80,9 @@ public boolean judgeSquareSum(int c) {
7680

7781
# 3. 反转字符串中的元音字符
7882

79-
[345. Reverse Vowels of a String (Easy)](https://leetcode.com/problems/reverse-vowels-of-a-string/description/)
83+
345. Reverse Vowels of a String (Easy)
84+
85+
[Leetcode](https://leetcode.com/problems/reverse-vowels-of-a-string/description/) / [力扣](https://leetcode-cn.com/problems/reverse-vowels-of-a-string/description/)
8086

8187
```html
8288
Given s = "leetcode", return "leotcede".
@@ -109,7 +115,9 @@ public String reverseVowels(String s) {
109115

110116
# 4. 回文字符串
111117

112-
[680. Valid Palindrome II (Easy)](https://leetcode.com/problems/valid-palindrome-ii/description/)
118+
680. Valid Palindrome II (Easy)
119+
120+
[Leetcode](https://leetcode.com/problems/valid-palindrome-ii/description/) / [力扣](https://leetcode-cn.com/problems/valid-palindrome-ii/description/)
113121

114122
```html
115123
Input: "abca"
@@ -141,7 +149,9 @@ private boolean isPalindrome(String s, int i, int j) {
141149

142150
# 5. 归并两个有序数组
143151

144-
[88. Merge Sorted Array (Easy)](https://leetcode.com/problems/merge-sorted-array/description/)
152+
88. Merge Sorted Array (Easy)
153+
154+
[Leetcode](https://leetcode.com/problems/merge-sorted-array/description/) / [力扣](https://leetcode-cn.com/problems/merge-sorted-array/description/)
145155

146156
```html
147157
Input:
@@ -175,7 +185,9 @@ public void merge(int[] nums1, int m, int[] nums2, int n) {
175185

176186
# 6. 判断链表是否存在环
177187

178-
[141. Linked List Cycle (Easy)](https://leetcode.com/problems/linked-list-cycle/description/)
188+
141. Linked List Cycle (Easy)
189+
190+
[Leetcode](https://leetcode.com/problems/linked-list-cycle/description/) / [力扣](https://leetcode-cn.com/problems/linked-list-cycle/description/)
179191

180192
使用双指针,一个指针每次移动一个节点,一个指针每次移动两个节点,如果存在环,那么这两个指针一定会相遇。
181193

@@ -198,7 +210,9 @@ public boolean hasCycle(ListNode head) {
198210

199211
# 7. 最长子序列
200212

201-
[524. Longest Word in Dictionary through Deleting (Medium)](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/description/)
213+
524. Longest Word in Dictionary through Deleting (Medium)
214+
215+
[Leetcode](https://leetcode.com/problems/longest-word-in-dictionary-through-deleting/description/) / [力扣](https://leetcode-cn.com/problems/longest-word-in-dictionary-through-deleting/description/)
202216

203217
```
204218
Input:

0 commit comments

Comments
 (0)