What if the sum of nodes after the next layer is bigger than the previous sum? Like this...


  • 1
    D
                                                         4
                                               1                 2
                                           1      2         2       1
                                      8      8 9    9   9    9  8    8
    

    the result will be 1+2+8+8+9+9+9+9+8+8 = 71, while the result should be

    4+8+8+9+9+9+9+8+8 = 72, the solution neglect the situation of this.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.