写在前面:
解释一道算法题步骤
1. Document your assumptioms
2. Explain you approach and how you intend to slove the problem
3. Provide code comments where applicable
4. Explain the big-O run time complexity of your solution. Justfy your answer
5. Identify any additional data structures you used and justify why you used them
6. Only provide your best answer to each part of the question
需要复习的算法题分类
- 二分搜索 ✅
- 二叉树与分治 part1: ✅ part2 ✅
- 三种遍历
- 前序遍历
- 中序遍历
- 后续遍历
- 三种遍历
- 动态规划 ✅
- 序列
- dd
- dddd
- ddd
- linkedlist ✅
- array
- 中位数 median,quick sort
- subarray
- two pointers
- partition array
- 数据结构 part1
- queue
- heap
- hashmap
- 并查集
- trie树
- 扫描线
- 图搜索, 搜索相关问题 ✅
- 回溯算法
9. 各种排序
1. 基于非比较排序 ✅
2. 基于比较排序
10. 算法总结