Topic: Greedy Algorithm Problem / Level: intermediate

Problem: You are given an array of integers representing energy costs. Find the minimum energy required to jump from the first to the last element.

Run the code to see the output here...