Chief Hopper Discussions | | HackerRank

Chief Hopper

  • + 0 comments

    JS

    const chiefHopper = heights => heights.reduceRight((energy, height) => Math.ceil((energy + height) / 2), 0);