/blog/images/avatar.webp

Hello World

力扣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

力扣694. 不同岛屿的数量

力扣694. Number of Distinct Islands(不同岛屿的数量)

统计不同形状的岛屿数量。会员题。

示例 1:

../posts/01_学习/87_LeetCode/0694_不同岛屿的数量/img/0694-1-description.png

输入:grid = [[1,1,0,0,0],[1,1,0,0,0],[0,0,0,1,1],[0,0,0,1,1]]
输出:1

提示:

  • 1 <= grid.length <= 50
  • 1 <= grid[0].length <= 50