size_t sumLeaves () that takes no arguments and returns the sum of leaves in the tree (i.e., sum of nodes with no childr
Posted: Fri May 20, 2022 5:56 pm
size_t sumLeaves () that takes no arguments and returns the sum of leaves in the tree (i.e., sum of nodes with no children). For example, the function should return 33 for the following tree (because of the three leaves: 3, 11 and 19). 13 17 3 11 23 19