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
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,5 +75,6 @@
75
75
| 228 |[Summary Ranges](https://leetcode.com/problems/summary-ranges/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/228_Summary_Ranges.py)| Detect start and jump, O(n) and O(1) |
76
76
| 243 |[Shortest Word Distance](https://leetcode.com/problems/shortest-word-distance/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/243_Shortest_Word_Distance.py)| Update index1 and index2, and check distance, O(n) and O(1) |
77
77
| 252 |[Meeting Rooms](https://leetcode.com/problems/meeting-rooms/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/252_Meeting_Rooms.py)| 1. Sort and compare intervals[i].end with intervals[i+1], O(nlogn) and O(1)<br>2. Sort and check intervals when count >= 2, O(nlogn) and O(n) |
78
+
| 259 |[3Sum Smaller](https://leetcode.com/problems/3sum-smaller/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/259_3Sum_Smaller.py)| 1. Reduce to two sum smaller, then binary search, O(n^2lgn) and O(1)<br>2. Reduce to two sum smaller, then two points, O(n^2) and O(1)|
78
79
| 337 |[House Robber III](https://leetcode.com/problems/house-robber-iii/)|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/337_House_Robber_III.py)| 1. Recursion with hash map, O(n) and O(n)<br>2. Recursion on two steps, O(n) and O(1) |
79
80
| 340 |[Longest Substring with At Most K Distinct Characters](https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/)♥|[Python](https://github.com/qiyuangong/leetcode/blob/master/python/340_Longest_Substring_with_At_Most_K_Distinct_Characters.py)| Maintain a sliding window with at most k distinct characters and a count for this window. Note that the start position need a loop to update.|
0 commit comments