Question 22
There are stones, numbered . For each , the height of Stone is . There is a frog who is initially on Stone . He will repeat the following action some number of times to reach Stone If the frog is currently on stone , it can jump to Stone or Stone . Here, a cost of is incurred, where is the stone to land on. Find the minimum possible total cost to reach stone 5 from stone 0 for the following sequence of heights for 6 stones.