Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

学习笔记

104. 二叉树的最大深度:

https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/

1. 采用递归法。

111. 二叉树的最小深度:

https://leetcode-cn.com/problems/minimum-depth-of-binary-tree/

1. 采用递归法。

102. 二叉树的层序遍历:

https://leetcode-cn.com/problems/binary-tree-level-order-traversal/

1. 采用bfs的方法.
2. 采用dft的方法.

236. 二叉树的最近公共祖先:

https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/

采用递归的方法

235. 二叉搜索树的最近公共祖先:

https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-search-tree/

采用递归的方法