海洋陆地地图 from collections import dequeclass Solution: def maxDistance(self, grid): queue = deque() row = len(grid) col = len(grid[0]) res = [[0 for _ in range(row)]for _ in range(col)] visited = [[False for _ in range(ro 图 2024-04-29 166 点赞 2 评论 251 浏览