1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 15:01:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 15:21:05 +08:00
parent b84ae535b7
commit e730aa6794
2244 changed files with 8703 additions and 59499 deletions

View File

@@ -11,7 +11,7 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 1103,
"likes": 1107,
"dislikes": 32,
"isLiked": null,
"similarQuestions": "[]",
@@ -161,7 +161,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"48.3K\", \"totalSubmission\": \"77.5K\", \"totalAcceptedRaw\": 48291, \"totalSubmissionRaw\": 77467, \"acRate\": \"62.3%\"}",
"stats": "{\"totalAccepted\": \"48.6K\", \"totalSubmission\": \"77.9K\", \"totalAcceptedRaw\": 48608, \"totalSubmissionRaw\": 77941, \"acRate\": \"62.4%\"}",
"hints": [
"Can you model this problem as a graph problem? Create n * m + 1 nodes where n * m nodes represents each cell of the map and one extra node to represent the exterior of the map.",
"In the map add edges between neighbors on land cells. And add edges between the exterior and land nodes which are in the boundary.\r\nReturn as answer the number of nodes that are not reachable from the exterior node."