MCPcopy Create free account
hub / github.com/Reaper622/DataStructure-Algorithm-TS / RouteSum

Function RouteSum

DataStructure/BinaryTree/RouteSum.ts:9–39  ·  view source on GitHub ↗

* 计算是否有一条路径上的总和等于目标和 * @param {TreeNode} root * @param {number} sum * @return {boolean}

(root : TreeNode, sum : number)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

getSumFunction · 0.70

Tested by

no test coverage detected