Record my LeetCode journey
Currently, there are not many solutions in this repo, as I previously worked on LeetCode-CN. I hope I will continue adding contents to this repo frequently.
WARNING: Some of my solutions are not that elegant. I apologize if you get triggered by them. 😆
I follow the taxonomy of this LeetBook. Will work on Union Find and Sliding Window. For the tables below, I will update them regularly to catch up my progress. The tables are incomplete.
No. | Title | Solution | Comment |
---|---|---|---|
0001 | Two Sum | Link | LeetCode's 'Abandon' |
0004 | Median of Two Sorted Arrays | Link | Worth reviewing |
0011 | Container With Most Water | Link | |
0015 | 3Sum | Link | Worth reviewing |
0016 | 3Sum Closest | Link | |
0018 | 4Sum | Link | |
0026 | Remove Duplicates from Sorted Array | Link | |
0027 | Remove Elements | Link | |
0031 | Next Permutation | Link | |
0041 | First Missing Positive | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0003 | Longest Substring Without Repeating Characters | Link | |
0006 | Zigzag Conversion | Link | |
0008 | String to Integer (atoi) | Link | |
0014 | Longest Common Prefix | Link | |
0058 | Length of Last Word | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0011 | Container With Most Water | Link | |
0015 | 3Sum | Link | Worth reviewing |
0016 | 3Sum Closest | Link | |
0018 | 4Sum | Link | |
0019 | Remove Nth Node From End of List | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0002 | Add Two Numbers | Link | |
0021 | Merge Two Sorted Lists | Link | |
0023 | Merge k Sorted Lists | Link | |
0024 | Swap Nodes in Pairs | Link | |
0025 | Reverse Nodes in k-Group | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0020 | Valid Parentheses | Link | |
0032 | Longest Valid Parentheses | Link | |
0042 | Trapping Rain Water | Link | |
0071 | Simplify Path | Link | |
0084 | Largest Rectangle in Histogram | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0094 | Binary Tree Inorder Traversal | Link | |
0095 | Unique Binary Search Trees II | Link | |
0096 | Unique Binary Search Trees | Link | |
0105 | Construct Binary Tree from Preorder and Inorder Traversal | Link | |
0106 | Construct Binary Tree from Inorder and Postorder Traversal | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0005 | Longest Palindromic Substring | Link | |
0022 | Generate Parentheses | Link | |
0045 | Jump Game II | Link | |
0053 | Maximum Subarray | Link | |
0055 | Jump Game | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0017 | Letter Combinations of a Phone Number | Link | |
0037 | Sudoku Solver | Link | |
0039 | Combination Sum | Link | |
0040 | Combination Sum II | Link | |
0046 | Permutations | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0098 | Validate Binary Search Tree | Link | |
0099 | Recover Binary Search Tree | Link | |
0104 | Maximum Depth of Binary Tree | Link | |
0110 | Balanced Binary Tree | Link | |
0111 | Minimum Depth of Binary Tree | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0100 | Same Tree | Link | |
0101 | Symmetric Tree | Link | |
0126 | Word Ladder II | Link | |
0127 | Word Ladder | Link | |
0130 | Surrounded Regions | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0004 | Median of Two Sorted Arrays | Link | Worth reviewing |
0033 | Search in Rotated Sorted Array | Link | |
0034 | Find First and Last Position of Element in Sorted Array | Link | Worth reviewing |
0035 | Search Insert Position | Link | |
0069 | Sqrt(x) | Link | Worth reviewing |
No. | Title | Solution | Comment |
---|---|---|---|
0007 | Reverse Integer | Link | |
0009 | Palindrome Number | Link | |
0043 | Multiply Strings | Link | |
0048 | Rotate Image | Link | |
0050 | Pow(x, n) | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0003 | Longest Substring Without Repeating Characters | Link | |
0012 | Integer to Roman | Link | |
0036 | Valid Sudoku | Link | |
0073 | Set Matrix Zeroes | Link | |
0076 | Minimum Window Substring | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0049 | Group Anagrams | Link | |
0056 | Merge Intervals | Link | |
0075 | Sort Colors | Link | |
0088 | Merge Sorted Array | Link | |
0147 | Insertion Sort List | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0029 | Divide Two Integers | Link | |
0067 | Add Binary | Link | |
0078 | Subsets | Link | |
0089 | Gray Code | Link | |
0090 | Subsets II | Link |
No. | Title | Solution | Comment |
---|---|---|---|
0547 | Number of Provinces | Link | |
0547 |