Tree dp
6 videos • 10 views • by LetsCode
Tree dp is dp on trees, it's a recursive dfs function but used the dp ideas to solve the problem.
1
Leetcode 1339. Maximum Product of Splitted Binary Tree (tree dp)
LetsCode
Download
2
Leetcode 543. Diameter of Binary Tree (Tree Diameter)
LetsCode
Download
3
Leetcode 1245. Tree Diameter (Tree Diameter)
LetsCode
Download
4
Leetcode 894. All Possible Full Binary Trees (tree dp)
LetsCode
Download
5
Leetcode 1522. Diameter of N-Ary Tree (Tree Diameter)
LetsCode
Download
6
Leetcode 124. Binary Tree Maximum Path Sum (Tree Diameter)
LetsCode
Download