Personal leetcode notes with comments / insights behind them. Not all of them are original and some insights are gained from other solutions on internet.
The purpose of this repo is try to expalin all the solutions in detail instead of just presenting solution that are sometimes hard to comprehend.
- 2 Add 2 Numbers
- 15 Three Sum
- 19 Remove Nth End From Linked List
- 20 Number of Island
- 25 Reverse Nodes in k-Group
- 33 Search In Rotated Sorted Array
- 45, 55 Jump Game I, II
- 53 Max Sub Array
- 62 Unique Paths
- 72 Edit Distance
- 101, 104, 226, 617 Tree Problems
- 102 Level Order Traversal
- 114 Flatten Tree
- 116 Populating Next Pointer to Each Node
- 138 Copy List with Random Pointer
- 173 Binary Search Tree Iterator
- 121 Best Time To Sell Stock
- 122 Best Time To Sell Stock II
- 153 Find Minimum In Rotated Sorted Array
- 199 BST Side View
- 208 Implement Trie
- 230 Kth Smallest in BST
- 322 Coin Change
- 739 Daily Temperatures
- 921 Minimum Add to Make Parentheses Valid
- 931 Minimum Falling Path Sum
- 1584 Min Cost to Connect All Points
- 1689 Partitioning Into Minimum Number Of Deci-Binary Numbers
Arrays | BFS/DFS | DP | Greedy | Linked List | Stacks/Queues | Strings | Trees