Topic: Greedy Algorithm Problem / Level: intermediate

Problem: You are given an array of integers representing the energy required to move between stones on a river. Find the minimum energy needed to reach the last stone.

Run the code to see the output here...