网站首页 站内搜索

搜索结果

查询Tags标签: 778,共有 2条记录
  • [Google] LeetCode 778 Swim in Rising Water 优先队列

    You are given an n x n integer matrix grid where each value grid[i][j] represents the elevation at that point (i, j). The rain starts to fall. At time t, the depth of the water everywhere is t. You can swim from a square to another 4-directionally adj…

    2022/9/2 23:52:58 人评论 次浏览
  • 778. 水位上升的泳池中游泳(并查集)

    778. 水位上升的泳池中游泳在一个 n x n 的整数矩阵 grid 中,每一个方格的值 grid[i][j] 表示位置 (i, j) 的平台高度。 当开始下雨时,在时间为 t 时,水池中的水位为 t 。你可以从一个平台游向四周相邻的任意一个平台,但是前提是此时水位必须同时淹没这两个平台。假定…

    2022/5/5 6:16:25 人评论 次浏览
扫一扫关注最新编程教程