You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hint 1
Can we reuse previously calculated information?
Hint 2
How can we calculate the sum of the current subtree using the sum of the child's subtree?