986. Interval List Intersections
011. Container With Most Water
1836. Remove Duplicates From an Unsorted Linked List
82. Remove Duplicates from Sorted List II
438. Find All Anagrams in a String典型模板题
209. Minimum Size Subarray Sum维护窗口的和 同713
713. Subarray Product Less Than K 维护窗口的乘积
034. Find First and Last Position of Element in Sorted Array
-这类题最重要的是寻找峰值/断崖的位置. 用mid 和mid+1 或者左右边界比较, 判断应该收敛哪个边界.
153. Find Minimum in Rotated Sorted Array
154. Find Minimum in Rotated Sorted Array II
1329. Sort the Matrix Diagonally 用PQ排序对角线
363. Max Sum of Rectangle No Larger Than K
- Pacific Atlantic Water Flow 这题很典型的岛屿问题变式 -BFS
117. Populating Next Right Pointers in Each Node II 层序遍历
1448. Count Good Nodes in Binary Tree
1530. Number of Good Leaf Nodes Pairs 这题很有意思 dfs return 一个int array
17. Letter Combinations of a Phone Number
797. All Paths From Source to Target
547. Number of Provinces(Union Find)
215. Kth Largest Element in an Array
5. Longest Palindromic Substring 从中心扩散判断最长子串
264. Ugly Number II 很有意思的思维方式,按照链表思考dp. 2,3,5 的指针.
300. Longest Increasing Subsequence
673. Number of Longest Increasing Subsequence参考300 题
1143. Longest Common Subsequence
659. Split Array into Consecutive Subsequences* HashMap+Greedy
871. Minimum Number of Refueling Stops
1338. Reduce Array Size to The Half
503. Next Greater Element II 用二次循环解决首尾相接数组问题