摘要: 自己写的: class Solution: def islandPerimeter(self, grid: List[List[int]]) -> int: # 初始化周长计数器 count = 0 # 遍历二维网格的行 for i in range(len(grid)): # 遍历二维网格的列 f 阅读全文
posted @ 2024-05-10 13:34 Junior_bond 阅读(9) 评论(0) 推荐(0)