MCPcopy Create free account
hub / github.com/PinkyJie/leetcode-patterns / maxPathSum

Function maxPathSum

8_DFS/124_binary-tree-maximum-path-sum.js:29–35  ·  view source on GitHub ↗

* * Problem: * Find the path with the maximum sum in a given binary tree. Write a function that * returns the maximum sum. A path can be defined as a sequence of nodes between any * two nodes and doesn’t necessarily pass through the root. The path must contain at * least one node. * https://le

(root)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

_traverseFunction · 0.70

Tested by

no test coverage detected