1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 07:21:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -11,7 +11,7 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 3167,
"likes": 3241,
"dislikes": 53,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Minimum Cost Homecoming of a Robot in a Grid\", \"titleSlug\": \"minimum-cost-homecoming-of-a-robot-in-a-grid\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Count Fertile Pyramids in a Land\", \"titleSlug\": \"count-fertile-pyramids-in-a-land\", \"difficulty\": \"Hard\", \"translatedTitle\": null}]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"157.4K\", \"totalSubmission\": \"212.2K\", \"totalAcceptedRaw\": 157370, \"totalSubmissionRaw\": 212247, \"acRate\": \"74.1%\"}",
"stats": "{\"totalAccepted\": \"160.4K\", \"totalSubmission\": \"216.3K\", \"totalAcceptedRaw\": 160424, \"totalSubmissionRaw\": 216262, \"acRate\": \"74.2%\"}",
"hints": [
"Create an additive table that counts the sum of elements of submatrix with the superior corner at (0,0).",
"Loop over all subsquares in O(n^3) and check if the sum make the whole array to be ones, if it checks then add 1 to the answer."