树
Data Structures & Algorithms · 23 notes
- Unique Binary Search Treeshistorical
LeetCode notes on counting unique binary search trees with DFS, memoization, and dynamic programming.
- Binary Tree Inorder Traversalhistorical
LeetCode notes on binary tree inorder traversal with recursion and color marking.
- Construct Binary Tree from Preorder and Inorder Traversalhistorical
LeetCode notes on reconstructing a binary tree from preorder and inorder traversals.
- Binary Tree Preorder, Inorder, and Postorder Traversalhistorical
Notes on implementing preorder, inorder, and postorder traversal of a binary tree.
- Convert BST to Greater Treehistorical
LeetCode notes on converting a binary search tree to a Greater Sum Tree.
- Validate Binary Search Treehistorical
LeetCode notes on validating a binary search tree with inorder traversal.
- Flatten Binary Tree to Linked Listhistorical
LeetCode notes on flattening a binary tree into a linked list in preorder.
- Lowest Common Ancestor of a Binary Treehistorical
LeetCode notes on finding the lowest common ancestor in a binary tree.
- Lowest Common Ancestor Nodehistorical
Notes on finding the lowest common ancestor of two nodes in a binary tree.
- Sum Root to Leaf Numbershistorical
LeetCode notes on summing all numbers formed by root-to-leaf paths.
- Serialize and Deserialize Binary Treehistorical
LeetCode notes on Serialize and Deserialize Binary Tree.
- Binary Tree Zigzag Level Order Traversalhistorical
LeetCode notes on Binary Tree Zigzag Level Order Traversal.