Leetcode03:Tree

2021-10-06 08:55:57 -0400
Tree
题号题目链接
基础
144Binary Tree Preorder Traversal
94Binary Tree Inorder Traversal
145Binary Tree Postorder Traversal
102Binary Tree Level Order Traversal
Preorder
100Same Tree
101Symmetric Tree
226Invert Binary Treepreorder + BFS
257Binary Tree Paths
112Path Sum
113Path Sum II
129Sum Root to Leaf Numbers
298Binary Tree Longest Consecutive Sequence
111Minimum Depth of Binary Tree
Preorder
104Maximum Depth of Binary Tree
110Balanced Binary Tree
124Binary Tree Maximum Path Sum
250Count Univalue Subtrees
366Find Leaves of Binary Tree
337House Robber IIIpostorder + preorder
BFS
107Binary Tree Level Order Traversal II
103Binary Tree Zigzag Level Order Traversal
199Binary Tree Right Side ViewBFS + preorder
BST
98Validate Binary Search Treepreorder
235Lowest Common Ancestor of a Binary Search Treepreorder
236Lowest Common Ancestor of a Binary Treepostorder
108Convert Sorted Array to Binary Search Treebinary search
109Convert Sorted List to Binary Search Treebinary search
173Binary Search Tree Iteratorinorder
230Kth Smallest Element in a BSTinorder
297Serialize and Deserialize Binary TreeBFS
285Inorder Successor in BSTinorder
270Closest Binary Search Tree Valuepreorder
272Closest Binary Search Tree Value IIinorder
99Recover Binary Search Treeinorder
重要程度
156Binary Tree Upside Down很少考
114Flatten Binary Tree to Linked List很少考
255Verify Preorder Sequence in Binary Search Tree很少考
333Largest BST Subtree很少考
222Count Complete Tree Nodes很少考
105Construct Binary Tree from Preorder and Inorder Traversal很少考
106Construct Binary Tree from Inorder and Postorder Traversal很少考
116Populating Next Right Pointers in Each Node重要
117Populating Next Right Pointers in Each Node II重要
314Binary Tree Vertical Order Traversal重要
96Unique Binary Search Trees重要
95Unique Binary Search Trees II很少考
331Verify Preorder Serialization of a Binary Tree很少考
«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N