- https://leetcode.com/problemset/all/
- 中文:https://leetcode-cn.com/problemset/all/?utm_source=LCUS&utm_medium=nbanner_click&utm_campaign=transfer2china&utm_content=title_main
- 时间复杂度
- 二叉查找树 O(logn)
- 二叉树遍历 O(n)
- optimal sorted matrix search 最优排序矩阵搜索 O(n)
- 归并排序 O(nlogn)
- hash表(HashSet、HashMap) 无序时间复杂度是O(1)
- 二叉查找树(TreeSet、TreeMap) 有序时间复杂度 logn
- https://mp.weixin.qq.com/s/3LR-iVC4zgj0tGhZ780PcQ
- https://mp.weixin.qq.com/s/FFsvWXiaZK96PtUg-mmtEw
- https://mp.weixin.qq.com/s/A3dLW92SNag8lw7vrQiEHQ
- https://leetcode.com/problems/reverse-linked-list/ 第6讲
- https://leetcode.com/problems/linked-list-cycle 第6讲
- https://leetcode.com/problems/swap-nodes-in-pairs 第6讲
- https://leetcode.com/problems/linked-list-cycle-ii 第6讲
- https://leetcode.com/problems/reverse-nodes-in-k-group/ 第6讲
- https://leetcode.com/problems/kth-largest-element-in-a-stream/ 第11讲
- https://leetcode.com/problems/sliding-window-maximum/ 第12讲
- https://leetcode.com/problems/validate-binary-search-tree/ 第18讲
24、 25、31、32、33、36、37、38、42、47、48、49、50、51、52、53、54 61
当查询不存在的时候,是肯定不存在的, 当查询存在的时候,有可能是误识别,需要去存储里面确认下是否真的存在
- 递归
- BFS 队列
- DFS 递归
- 二分查找
- DP