Maximum triangle path sum: Difference between revisions
→Functional (ES5)
Line 724:
}
// Evaluating from the bottom row upwards
return foldr1(
function (xs, ys) {
Line 733 ⟶ 734:
);
}, [
[55],
[94, 48],
[95, 30, 96],
|