Tree DFS
Explore tree depth-first using recursion/stack — solve path sum, diameter, validation and serialization problems.
21Total
1Maximum Depth of Binary Tree
easy
2Same Treeeasy
3Invert Binary Treeeasy
4Path Sumeasy
5Diameter of Binary Treeeasy
6Balanced Binary Treeeasy
7Subtree of Another Treeeasy
8Binary Tree Pathseasy
9Path Sum IImedium
10Sum Root to Leaf Numbersmedium
11Lowest Common Ancestor of a BSTmedium
12Validate Binary Search Treemedium
13Kth Smallest Element in a BSTmedium
14Construct Binary Tree from Preorder and Inordermedium
15Binary Tree Maximum Path Sumhard
16Serialize and Deserialize Binary Treehard