Today is a great day :D! At last I have the code that finds the maximum value path in a tree! And it doesn't take any time even with a big tree! The last function added to the code is maxValuePath, which uses the previous built function sumArea to determine which step comes next in the tree, given a specific node, in order to build the path with the highest value. Now I'll clean the code.
Today is a great day :D! At last I have the code that finds the maximum value path in a tree! And it doesn't take any time even with a big tree! The last function added to the code is maxValuePath, which uses the previous built function sumArea to determine which step comes next in the tree, given a specific node, in order to build the path with the highest value. Now I'll clean the code.

abunuwas/python-trees