二叉树
练习:Invert Binary Tree(翻转二叉树)
1 | # Definition for a binary tree node. |
Maximum Depth of Binary Tree(二叉树的最大深度)
1 | # Definition for a binary tree node. |
Validate Binary Search Tree(验证二叉查找树)[作为可选]
1 |
|
堆
练习:Path Sum(路径总和)
1 | # Definition for a binary tree node. |