You are given an integer n and a costs of length n, where costs[i - 1] represents the cost of landing on step i.
You start at step n. From any step i, you can jump forward to any step j such that n. The cost of making a jump from step i to step j is:
You are given an integer n and a costs of length n, where costs[i - 1] represents the cost of landing on step i.
You start at step n. From any step i, you can jump forward to any step j such that n. The cost of making a jump from step i to step j is: