LeetCodeSolution
Record my leet code solution
心法
- Recursive 及 DP 都是將問題拆成子問題解決,差別在於 DP 可以藉由保存子問題的答案來減少重複運算
Target
- Tree
- Linked List
- Array
- Stack
- Queue
- Sort
- QuickSort, QuickSelect
- Search
- Binary Seach
To Do
- Leetcode top 100 liked
- Leetcode explore - BST
- Leetcode explore - Array
Cool Idea
- 680. Valid Palindrome II
- 53. Maximum Subarray
- 79. Word Search
- 744. Find Smallest Letter Greater Than Target
- 279. Perfect Squares
- 417. Pacific Atlantic Water Flow
- 130. Surrounded Regions
So hard
- 378. Kth Smallest Element in a Sorted Matrix
- 236. Lowest Common Ancestor of a Binary Tree
- 287. Find the Duplicate Number (Medium)
- 769. Max Chunks To Make Sorted
- 697. Degree of an Array
- 406. Queue Reconstruction by Height
- 665. Non-decreasing Array
- 647. Palindromic Substrings
- 581. Shortest Unsorted Continuous Subarray
- Search for a Range