AlgoDaily Solution
1Locked, only available for premium members.
Community Solutions
Community solutions are only available for premium users.
Access all course materials today
The rest of this tutorial's contents are only available for premium members. Please explore your options at the link below.
xxxxxxxxxx
91
var assert = require('assert');
function numSignWays(nums, target) {
// Fill in this method
return nums;
}
function helper(step, sum, hash, nums, target) {
// Fill in this method
return step;
}
numSignWays([2, 1, 3, 2], 4);
function Node(val) {
this.val = val;
this.left = null;
this.right = null;
}
// Regular binary trees
var tree1 = new Node(4);
tree1.left = new Node(1);
tree1.right = new Node(3);
var tree2 = new Node(5);
tree2.left = new Node(10);
OUTPUT
Results will appear here.