We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Easy Addition
You are viewing a single comment's thread. Return to all comments →
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?