You are viewing a single comment's thread. Return to all comments →
JS
const chiefHopper = heights => heights.reduceRight((energy, height) => Math.ceil((energy + height) / 2), 0);
Seems like cookies are disabled on this browser, please enable them to open this website
Chief Hopper
You are viewing a single comment's thread. Return to all comments →
JS