• + 1 comment

    I can't find how the query between the sum of weights between 5 and 3 is 9. The path would be 5,4,1,3 and the second path is 5,4,2,1,3. Why the longer path considered a solution?

                      1
           /|\
          | 2 3
           \ |\
            4 6
            | |
            5 7