摘要:
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 a value (int) an
阅读全文
posted @ 2025-03-28 22:04
ZhangZhihuiAAA
阅读(9)
推荐(0)
摘要:
You are given an m x n matrix board containing letters 'X' and 'O', capture regions that are surrounded: Connect: A cell is connected to adjacent cell
阅读全文
posted @ 2025-03-28 12:06
ZhangZhihuiAAA
阅读(16)
推荐(0)
摘要:
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 island is surrounded by wa
阅读全文
posted @ 2025-03-28 08:52
ZhangZhihuiAAA
阅读(21)
推荐(0)