1. 程式人生 > >LeetCode - Tree 總結 【updating】

LeetCode - Tree 總結 【updating】

Preorder, Inorder, Postorder and Level order Traversal

Construct Binary Tree from Preorder and Inorder Traversal

Construct Binary Tree from Inorder and Postorder Traversal

Construct Binary Tree from Preorder and Postorder Traversal [exist multiple solutions]

Binary Tree Preorder Traversal

Binary Tree Inorder Traversal

Inorder Successor in BST

Closest Binary Search Tree Value II [inorder]

Kth Smallest Element in a BST [inorder]

Binary Tree Level Order Traversal

Binary Tree Zigzag Level Order Traversal

Binary Tree Vertical Order Traversal

Binary Search Tree

Validate Binary Search Tree

Unique Binary Search Trees, II (construct the actual trees)

Recover Binary Search Tree

Convert Sorted List to Binary Search Tree

Lowest Common Ancestor

Lowest Common Ancestor of a Binary Search Tree

Lowest Common Ancestor of a Binary Tree

Serialize and Deserialize

Serialize and Deserialize Binary Tree

Serialize and Deserialize BST

Serialize and Deserialize N-ary Tree

Design

Binary Search Tree Iterator

String

Construct String from Binary Tree

Contruct Binary Tree from String

Linked List

Flatten Binary Tree to Linked List

Convert Binary Search Tree to Sorted Doubly Linked List

Convert Sorted List to Binary Search Tree

Other

Symmetric Tree

Binary Tree Right Side View

Balanced Binary Tree [depth of the tree]

Sum of Distance in Tree

Binary Tree Maximum Path Sum

Populating Next Right Pointers in Each Node, II

Merge Two Binary Trees

Count Univalue Subtrees

Kill Process