Tree
1339. Maximum Product of Splitted Binary Tree
Remove exactly one edge to split a binary tree into two subtrees; maximise the product of their value sums, returned mod 1e9+7. Cutting the edge above node v separates v's subtree (sum s) from the…
Loading…