先序遍历
Data Structures & Algorithms · 10 notes
- 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.