You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ P.S.:
115
115
| 075 |[Sort Colors](https://github.com/interviewcoder/leetcode/blob/master/src/_075_SortColors/Solution.java)| Medium |`Array``Two Pointers``Sort`||
116
116
| 076 |[Minimum Window Substring](https://github.com/interviewcoder/leetcode/blob/master/src/_076_MinimumWindowSubstring/Solution.java)| Hard |`Hash Table``Two Pointers``String`|`!`**[substring/sublist]** hashing + two pointers -> O(N) |
117
117
| 077 |[Combinations](https://github.com/interviewcoder/leetcode/blob/master/src/_077_Combinations/Solution.java)| Medium |`Backtracking`||
118
-
| 078 |[Subsets](https://github.com/interviewcoder/leetcode/blob/master/src/_078_Subsets/Solution.java)| Medium |`Array``Backtracking``Bit Manipulation`|backtrack template (see [README](https://github.com/interviewcoder/leetcode/blob/master/src/_078_Subsets)) |
118
+
| 078 |[Subsets](https://github.com/interviewcoder/leetcode/blob/master/src/_078_Subsets/)| Medium |`Array``Backtracking``Bit Manipulation`| see [README](https://github.com/interviewcoder/leetcode/blob/master/src/_078_Subsets)|
119
119
| 079 |[Word Search](https://github.com/interviewcoder/leetcode/blob/master/src/_079_WordSearch/Solution.java)| Medium |`Array``Backtracking`||
120
120
| 080 |[Remove Duplicates from Sorted Array II](https://github.com/interviewcoder/leetcode/blob/master/src/_080_RemoveDuplicatesFromSortedArrayII/)| Medium |`Array``Two Pointers`| from 2 to k (general) |
121
121
| 081 |[Search in Rotated Sorted Array II](https://github.com/interviewcoder/leetcode/blob/master/src/_081_SearchInRotatedSortedArrayII/Solution.java)| Medium |`Array``Binary Search`||
@@ -163,8 +163,8 @@ P.S.:
163
163
| 123 |[Best Time to Buy and Sell Stock III](https://github.com/interviewcoder/leetcode/blob/master/src/_123_BestTimeToBuyAndSellStockIII/Solution.java)| Hard |`Array``Dynamic Programming`||
164
164
| 124 |[Binary Tree Maximum Path Sum](https://github.com/interviewcoder/leetcode/blob/master/src/_124_BinaryTreeMaximumPathSum/)| Hard |`Tree``Depth-first Search`| post-order, local and global , [README](https://github.com/interviewcoder/leetcode/tree/master/src/_124_BinaryTreeMaximumPathSum)|
| 126 |[Word Ladder II](https://github.com/interviewcoder/leetcode/blob/master/src/_126_WordLadderII/Solution.java)| Hard |`Array``Backtracking``Breadth-first Search``String`||
167
-
| 127 |[Word Ladder](https://github.com/interviewcoder/leetcode/blob/master/src/_127_WordLadder/Solution.java)| Medium |`Breadth-first Search`||
166
+
| 126 |[Word Ladder II](https://github.com/interviewcoder/leetcode/blob/master/src/_126_WordLadderII/)| Hard |`Array``Backtracking``Breadth-first Search``String`||
167
+
| 127 |[Word Ladder](https://github.com/interviewcoder/leetcode/blob/master/src/_127_WordLadder/)| Medium |`Breadth-first Search`||
168
168
| 128 |[Longest Consecutive Sequence](https://github.com/interviewcoder/leetcode/blob/master/src/_128_LongestConsecutiveSequence/Solution.java)| Hard |`Array`||
169
169
| 129 |[Sum Root to Leaf Numbers](https://github.com/interviewcoder/leetcode/blob/master/src/_129_SumRootToLeafNumbers/Solution.java)| Medium |`Tree``Depth-first Search`||
170
170
| 130 |[Surrounded Regions](https://github.com/interviewcoder/leetcode/blob/master/src/_130_SurroundedRegions/Solution.java)| Medium |`Breadth-first Search`||
@@ -198,6 +198,7 @@ P.S.:
198
198
| 160 |[Intersection of Two Linked Lists](https://github.com/interviewcoder/leetcode/blob/master/src/_160_IntersectionOfTwoLinkedLists/Solution.java)| Easy |`Linked List`| two pointers on two lists; combine long and short lists into one |
199
199
| 161 |[One Edit Distance](https://github.com/interviewcoder/leetcode/blob/master/src/_161_OneEditDistance/)| Medium |`String`||
200
200
| 162 |[Find Peak Element](https://github.com/interviewcoder/leetcode/blob/master/src/_162_FindPeakElement/Solution.java)| Medium |`Array``Binary Search`||
201
+
| 163 |[Missing Ranges](https://github.com/interviewcoder/leetcode/blob/master/src/_163_MissingRanges/Solution.java)| Medium |`Array`||
201
202
| 164 |[Maximum Gap](https://github.com/interviewcoder/leetcode/blob/master/src/_164_MaximumGap/Solution.java)| Hard |`Sort`||
202
203
| 165 |[Compare Version Numbers](https://github.com/interviewcoder/leetcode/blob/master/src/_165_CompareVersionNumbers/Solution.java)| Easy |`String`||
203
204
| 166 |[Fraction to Recurring Decimal](https://github.com/interviewcoder/leetcode/blob/master/src/_166_FractionToRecurringDecimal/Solution.java)| Medium |`Hash Table``Math`||
@@ -280,6 +281,7 @@ P.S.:
280
281
| 282 | Expression Add Operators | Hard |`Divide and Conquer`||
| Two Pointers : maxsize| 003 |[Longest Substring Without Repeating Characters](https://github.com/interviewcoder/leetcode/blob/master/src/_003_LongestSubstringWithoutRepeatingCharacters/Solution.java)| O(N^3) -> O(N) + O(N) hash|
10
+
| Two Pointers : maxsize | 159 |[Longest Substring With At Most Two Distinct Characters ](https://github.com/interviewcoder/leetcode/blob/master/src/_159_LongestSubstringWithAtMostTwoDistinctCharacters/Solution.java)| O(N^3) -> O(N) + O(2) hash |
2.2) visit root last = post-order = bottom-up = divide and conquer
11
+
[Lowest Common Ancestor of Binary Tree]
12
+
2.3) visit root middle = in-order traversal
10
13
```
11
14
12
15
@@ -25,10 +28,11 @@ Tree Problem
25
28
| level traversal | 103 | Binary Tree Zigzag Level Order Traversal |
26
29
|**`Tree::divide and conquer`**|||
27
30
|*`post`*-order | 124 |[Binary Tree Maximum Path Sum](https://github.com/interviewcoder/leetcode/tree/master/src/_124_BinaryTreeMaximumPathSum)|
31
+
|*`post`*-order | 129 |[Sum Root To Leaf Numbers](https://github.com/interviewcoder/leetcode/blob/master/src/_129_SumRootToLeafNumbers/Solution.java)|
28
32
|*`post`*-order | 104 |[Maximum Depth Of Binary Tree](https://github.com/interviewcoder/leetcode/tree/master/src/_104_MaximumDepthOfBinaryTree)|
29
33
|*`post`*-order | 236 |[Lowest Common Ancestor of Binary Tree](https://github.com/interviewcoder/leetcode/tree/master/src/_236_LowestCommonAncestorOfABinaryTree)|
0 commit comments