MCPcopy Create free account
hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / SumInfo

Class SumInfo

binary-trees/range-sum-of-bst.js:16–20  ·  view source on GitHub ↗

* @param {TreeNode} root * @param {number} low * @param {number} high * @return {number}

Source from the content-addressed store, hash-verified

14 */
15
16class SumInfo {
17 constructor() {
18 this.sum = 0;
19 }
20}
21var rangeSumBST = function (root, low, high) {
22 const sum = new SumInfo();
23 getSumHelper(root, low, high, sum);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected