Skip to content

Commit 933d7b7

Browse files
committed
change the oj.leetcode.com to leetcode.com
1 parent c888428 commit 933d7b7

File tree

42 files changed

+49
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+49
-49
lines changed

Diff for: solutions/001.Two_Sum/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 001.Two_Sum (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/two-sum/
4+
题目:https://leetcode.com/problems/two-sum/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**
@@ -21,7 +21,7 @@
2121
## 001.Two_Sum (Medium)
2222

2323
### **Link**:
24-
Problem: https://oj.leetcode.com/problems/two-sum/
24+
Problem: https://leetcode.com/problems/two-sum/
2525
Newest solutions in my Github: https://github.com/illuz/leetcode
2626

2727
### **Analysis**

Diff for: solutions/002.Add_Two_Numbers/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
### **链接**
5-
题目:https://oj.leetcode.com/problems/add-two-numbers/
5+
题目:https://leetcode.com/problems/add-two-numbers/
66
代码(github):https://github.com/illuz/leetcode
77

88
### **题意**
@@ -19,7 +19,7 @@
1919

2020

2121
**Link**:
22-
Problem: https://oj.leetcode.com/problems/add-two-numbers/
22+
Problem: https://leetcode.com/problems/add-two-numbers/
2323
Newest solutions in my Github: https://github.com/illuz/leetcode
2424

2525
**Analysis**

Diff for: solutions/003.Longest_Substring_Without_Repeating_Characters/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## 003.Longest_Substring_Without_Repeating_Characters
33

44
### **链接**
5-
题目:https://oj.leetcode.com/problems/Longest-Substring-Without-Repeating-Characters/
5+
题目:https://leetcode.com/problems/Longest-Substring-Without-Repeating-Characters/
66
代码(github):https://github.com/illuz/leetcode
77

88
### **题意**
@@ -22,7 +22,7 @@
2222

2323

2424
**Link**:
25-
Problem: https://oj.leetcode.com/problems/Longest-Substring-Without-Repeating-Characters/
25+
Problem: https://leetcode.com/problems/Longest-Substring-Without-Repeating-Characters/
2626
Newest solutions in my Github: https://github.com/illuz/leetcode
2727

2828
**Analysis**

Diff for: solutions/004.Median_of_Two_Sorted_Arrays/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## 004.Median_of_Two_Sorted_Arrays
33

44
### **链接**
5-
题目:https://oj.leetcode.com/problems/Median-of-Two-Sorted-Arrays/
5+
题目:https://leetcode.com/problems/Median-of-Two-Sorted-Arrays/
66
代码(github):https://github.com/illuz/leetcode
77

88
### **题意**
@@ -21,7 +21,7 @@
2121

2222

2323
**Link**:
24-
Problem: https://oj.leetcode.com/problems/Median-of-Two-Sorted-Arrays/
24+
Problem: https://leetcode.com/problems/Median-of-Two-Sorted-Arrays/
2525
Newest solutions in my Github: https://github.com/illuz/leetcode
2626

2727
**Analysis**

Diff for: solutions/005.Longest_Palindromic_Substring/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 005.Longest_Palindromic_Substring (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/Longest-Palindromic-Substring/
4+
题目:https://leetcode.com/problems/Longest-Palindromic-Substring/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/006.ZigZag_Conversion/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 006.ZigZag_Conversion (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/zigzag-conversion/
4+
题目:https://leetcode.com/problems/zigzag-conversion/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/007.Reverse_Integer/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 007.Reverse_Integer (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/Reverse-Integer/
4+
题目:https://leetcode.com/problems/Reverse-Integer/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/008.String_to_Integer/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 008.String_to_Integer (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/string-to-integer-atoi/
4+
题目:https://leetcode.com/problems/string-to-integer-atoi/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/009.Palindrome_Number/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 009.Palindrome_Number
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/palindrome-number/
4+
题目:https://leetcode.com/problems/palindrome-number/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/010.Regular_Expression_Matching/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 010.Regular_Expression_Matching
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/regular-expression-matching/
4+
题目:https://leetcode.com/problems/regular-expression-matching/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**
@@ -13,6 +13,6 @@
1313
1. 偷懒的方法是直接用语言自带的正则实现。(Python 又是一句话 =w=)
1414
2. 用 DFS 的方法
1515
3. 可以用 DP 的方法
16-
- 用数组 DP :`dp[i][j]` 表示 s[0..i] 和 p[0..j] 是否 match,当 `p[j] != '*'``b[i + 1][j + 1] = b[i][j] && s[i] == p[j]` ,当 `p[j] == '*'` 要再分类讨论,具体可以参考 [DP C++](https://oj.leetcode.com/discuss/18970/concise-recursive-and-dp-solutions-with-full-explanation-in),还可以压缩下把 dp 降成一维:参考[这里](https://oj.leetcode.com/discuss/19902/share-a-scarce-dp-solution-in-java-time-o-mn-spaceo-n)
16+
- 用数组 DP :`dp[i][j]` 表示 s[0..i] 和 p[0..j] 是否 match,当 `p[j] != '*'``b[i + 1][j + 1] = b[i][j] && s[i] == p[j]` ,当 `p[j] == '*'` 要再分类讨论,具体可以参考 [DP C++](https://leetcode.com/discuss/18970/concise-recursive-and-dp-solutions-with-full-explanation-in),还可以压缩下把 dp 降成一维:参考[这里](https://leetcode.com/discuss/19902/share-a-scarce-dp-solution-in-java-time-o-mn-spaceo-n)
1717
- 用记忆化,就是把算过的结果保存下来,下次就不用再算了
1818

Diff for: solutions/011.Container_With_Most_Water/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 011.Container_With_Most_Water
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/container-with-most-water/
4+
题目:https://leetcode.com/problems/container-with-most-water/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/012.Integer_to_Roman/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 012.Integer_to_Roman (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/integer-to-roman/
4+
题目:https://leetcode.com/problems/integer-to-roman/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/013.Roman_to_Integer/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 013.Roman_to_Integer (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/roman-to-integer/
4+
题目:https://leetcode.com/problems/roman-to-integer/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/014.Longest_Common_Prefix/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 014.Longest_Common_Prefix (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/longest-common-prefix/
4+
题目:https://leetcode.com/problems/longest-common-prefix/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/015.3Sum/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 015.3Sum (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/3sum/
4+
题目:https://leetcode.com/problems/3sum/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/016.3Sum_Closest/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 016.3Sum_Closest (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/3sum-closest/
4+
题目:https://leetcode.com/problems/3sum-closest/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/017.Letter_Combinations_of_a_Phone_Number/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 017.Letter_Combinations_of_a_Phone_Number
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/
4+
题目:https://leetcode.com/problems/letter-combinations-of-a-phone-number/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/018.4Sum/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 018.4Sum (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/4sum/
4+
题目:https://leetcode.com/problems/4sum/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/019.Remove_Nth_Node_From_End_of_List/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 019.Remove_Nth_Node_From_End_of_List (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/
4+
题目:https://leetcode.com/problems/remove-nth-node-from-end-of-list/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/020.Valid_Parentheses/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 020.Valid_Parentheses (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/valid-parentheses/
4+
题目:https://leetcode.com/problems/valid-parentheses/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/021.Merge_Two_Sorted_Lists/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 021.Merge_Two_Sorted_Lists (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/merge-two-sorted-lists/
4+
题目:https://leetcode.com/problems/merge-two-sorted-lists/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/022.Generate_Parentheses/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 022.Generate_Parentheses (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/generate-parentheses/
4+
题目:https://leetcode.com/problems/generate-parentheses/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/023.Merge_k_Sorted_Lists/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 023. Merge k Sorted Lists (Hard)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/merge-k-sorted-lists/
4+
题目:https://leetcode.com/problems/merge-k-sorted-lists/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/024.Swap_Nodes_in_Pairs/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 024. Swap Nodes in Pairs (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/swap-nodes-in-pairs/
4+
题目:https://leetcode.com/problems/swap-nodes-in-pairs/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/025.Reverse_Nodes_in_k-Group/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 025. Reverse Nodes in k-Group (Hard)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/
4+
题目:https://leetcode.com/problems/reverse-nodes-in-k-group/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/026.Remove_Duplicates_from_Sorted_Array/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 026. Remove Duplicates from Sorted Array (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/
4+
题目:https://leetcode.com/problems/remove-duplicates-from-sorted-array/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/027.Remove_Element/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 027. Remove Element (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/remove-element/
4+
题目:https://leetcode.com/problems/remove-element/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/028.Implement_strStr()/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 028. Implement strStr() (Easy)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/implement-strstr/
4+
题目:https://leetcode.com/problems/implement-strstr/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/029.Divide_Two_Integers/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 029. Divide Two Integers (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/divide-two-integers/
4+
题目:https://leetcode.com/problems/divide-two-integers/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/030.Substring_with_Concatenation_of_All_Words/readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 030. Substring with Concatenation of All Words (Hard)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/substring-with-concatenation-of-all-words/
4+
题目:https://leetcode.com/problems/substring-with-concatenation-of-all-words/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**
@@ -14,7 +14,7 @@
1414
这样的算法复杂度是 O(n*m),其实还有几种很酷的 O(n) 的算法:
1515

1616
1.[「076. Minimum Window Substring (Hard)」](https://github.com/illuz/leetcode/blob/master/solutions/079.Word_Search) 一样的思路,就是维护两个指针,分别为前后区间,和一个 map,跑前面的指针看看当前区间能不能恰好匹配,行的话就得到答案了。
17-
2. 还有个用神奇的 `map<string, queue>` 来做,其实原理是跟 1 是一样的,具体见:[code with HashTable with Queue for O(n) runtime](https://oj.leetcode.com/discuss/21598/my-c-code-with-hashtable-with-queue-for-runtime-71ms-runtime)
18-
3. 这其实只是一个优化,在匹配时使用 Trie 匹配,具体见:[Accepted recursive solution using Trie Tree](https://oj.leetcode.com/discuss/20055/accepted-recursive-solution-using-trie-tree)
17+
2. 还有个用神奇的 `map<string, queue>` 来做,其实原理是跟 1 是一样的,具体见:[code with HashTable with Queue for O(n) runtime](https://leetcode.com/discuss/21598/my-c-code-with-hashtable-with-queue-for-runtime-71ms-runtime)
18+
3. 这其实只是一个优化,在匹配时使用 Trie 匹配,具体见:[Accepted recursive solution using Trie Tree](https://leetcode.com/discuss/20055/accepted-recursive-solution-using-trie-tree)
1919

2020
这里用 C++ 实现了 O(n*m) 算法,用 Java 实现了 1 算法。

Diff for: solutions/031.Next_Permutation/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 031. Next Permutation (Medium)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/next-permutation/
4+
题目:https://leetcode.com/problems/next-permutation/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/032.Longest_Valid_Parentheses/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 032. Longest Valid Parentheses (Hard)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/longest-valid-parentheses/
4+
题目:https://leetcode.com/problems/longest-valid-parentheses/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/068.Text_Justification/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 068.Text_Justification (Hard)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/text-justification/
4+
题目:https://leetcode.com/problems/text-justification/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/076.Minimum_Window_Substring/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 076. Minimum Window Substring (Hard)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/minimum-window-substring/
4+
题目:https://leetcode.com/problems/minimum-window-substring/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/084.Largest_Rectangle_in_Histogram/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 084. Largest Rectangle in Histogram (Hard)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/largest-rectangle-in-histogram/
4+
题目:https://leetcode.com/problems/largest-rectangle-in-histogram/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/085.Maximal_Rectangle/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 085. Maximal Rectangle (Hard)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/maximal-rectangle/
4+
题目:https://leetcode.com/problems/maximal-rectangle/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/087.Scramble_String/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 087. Scramble String (Hard)
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/scramble-string/
4+
题目:https://leetcode.com/problems/scramble-string/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

Diff for: solutions/093.Restore_IP_Addresses/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 093.Restore_IP_Addresses
22

33
### **链接**
4-
题目:https://oj.leetcode.com/problems/restore-ip-addresses/
4+
题目:https://leetcode.com/problems/restore-ip-addresses/
55
代码(github):https://github.com/illuz/leetcode
66

77
### **题意**

0 commit comments

Comments
 (0)