目录

力扣656. 金币路径

力扣656. Coin Path(金币路径)

从起点跳到终点的最小金币。会员题。

示例 1:

../posts/01_学习/87_LeetCode/0656_金币路径/img/0656-1-description.png

输入:[1,2,4,-1,2], 2
输出:[1,3,5]

提示:

  • 1 <= coins.length <= 1000
  • -1 <= coins[i] <= 100
  • 1 <= maxJump <= 100