Branch Sums

Approach

Tools

- recursive call


Technique 

- take a list to store sum

- call Recursive function with root, sum and list

- check if it is leaf node or not

- if leaf node, add sum to list and rerun;


Code Solution

Share