随笔分类 -  Graphs

摘要:994. Rotting Oranges You are given an m x n grid where each cell can have one of three values: 0 representing an empty cell, 1 representing a fresh or 阅读全文
posted @ 2023-04-07 20:53 AaronTanooo 阅读(9) 评论(0) 推荐(0) 编辑
摘要:417. Pacific Atlantic Water Flow There is an m x n rectangular island that borders both the Pacific Ocean and Atlantic Ocean. The Pacific Ocean touche 阅读全文
posted @ 2023-02-24 18:48 AaronTanooo 阅读(16) 评论(0) 推荐(0) 编辑
摘要:133. Clone Graph Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph. Each node in the graph contains 阅读全文
posted @ 2023-02-24 16:52 AaronTanooo 阅读(15) 评论(0) 推荐(0) 编辑
摘要:200. Number of Islands Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An isl 阅读全文
posted @ 2023-02-24 14:03 AaronTanooo 阅读(11) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示