树相关LeetCode题库

104. Maximum Depth of Binary Tree
226. Invert Binary Tree

二叉树的遍历
先序遍历:144. Binary Tree Preorder Traversal
中序遍历:94. Binary Tree Inorder Traversal
后序遍历:145. Binary Tree Postorder Traversal
层次遍历:102. Binary Tree Level Order Traversal
107. Binary Tree Level Order Traversal II
蛇形层次遍历:103. Binary Tree Zigzag Level Order Traversal
垂直遍历:314. Binary Tree Vertical Order Traversal

根据前序/后序 + 中序 遍历序列构造树:
105. Construct Binary Tree from Preorder and Inorder Traversal
106. Construct Binary Tree from Inorder and Postorder Traversal

你可能感兴趣的:(树相关LeetCode题库)