This project records its my ideas for solving leetcode with python, ongoing update ...
# | Title | Solution | Difficulty |
---|---|---|---|
1 | Two Sum | Python | Easy |
53 | Maximum Subarray | Python | Easy |
# | Title | Solution | Difficulty |
---|---|---|---|
3 | Longest Substring Without Repeating Characters | Python | Medium |
5 | Longest Palindromic Substring | Python | Medium |
# | Title | Solution | Difficulty |
---|---|---|---|
21 | Merge Two Sorted Lists | Python | Easy |
206 | Reverse Linked List | Python | Easy |
234 | Palindrome Linked List | Python | Easy |
146 | LRU Cache | Python | Medium |
2 | Add Two Numbers | Python | Medium |
19 | Remove Nth Node From End of List | Python | Medium |
# | Title | Solution | Difficulty |
---|---|---|---|
1235 | Maximum Profit in Job Scheduling | Python | Hard |
- | 冒泡排序 | Python | - |
- | 希尔排序 | Python | - |
- | 快速排序 | Python | - |
- | 归并排序 | Python | - |
- | 插入排序 | Python | - |
- | 选择排序 | Python | - |
# | Title | Solution | Difficulty |
---|---|---|---|
155 | Min Stack | Python | Easy |
20 | Valid Parentheses | Python | Easy |
739 | Daily Temperatures | Python | Medium |
394 | Decode String | Python | Medium |
# | Title | Solution | Difficulty |
---|---|---|---|
617 | Merge Two Binary Trees | Python | Easy |
226 | Invert Binary Tree | Python | Easy |
94 | Binary Tree Inorder Traversal | Python | Medium |
101 | Symmetric Tree | Python | Easy |
104 | Maximum Depth of Binary Tree | Python | Easy |
543 | Diameter of Binary Tree | Python | Easy |
102 | Binary Tree Level Order Traversal | Python | Medium |
144 | Binary Tree Preorder Traversal | Python | Medium |
145 | Binary Tree Postorder Traversal | Python | Medium |
| 543 | Diameter of Binary Tree | Python | Easy | | 543 | Diameter of Binary Tree | Python | Easy |
# | Title | Solution | Difficulty |
---|---|---|---|
53 | Maximum Subarray | Python | Easy |
300 | Longest Increasing Subsequence | Python | Medium |
1143 | Longest Common Subsequence | Python | Medium |
This is a 剑指offer题解