用来记录在leetcode上和平时遇到的的算法题以及一些思考。
1. 求节点的公共祖先
2. pow(x,n)的实现.
3. 求二叉树的最大深度(分治,BFS,DFS的比较).
4. n皇后问题(DFS+剪枝).
5. 数独问题(朴素DFS)
6. 二分查找
用来记录在leetcode上和平时遇到的的算法题以及一些思考。
1. 求节点的公共祖先
2. pow(x,n)的实现.
3. 求二叉树的最大深度(分治,BFS,DFS的比较).
4. n皇后问题(DFS+剪枝).
5. 数独问题(朴素DFS)
6. 二分查找