cost[i] is the toll for stepping on stair i; after paying you may climb 1 or 2 stairs. You may start at index 0 or 1. Return the minimum cost to reach the top (one past the last stair).
Input: one line of space-separated integers cost.
Output: the minimum total cost.
10 15 20
15
Start at 15, jump to the top.
1 100 1 1 1 100 1 1 100 1
6
Run your code against the sample tests, or Submit to run the full suite.