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,8 +11,8 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 1475,
"dislikes": 115,
"likes": 1507,
"dislikes": 118,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "[[1,0,1],[1,1,0],[1,1,0]]\n[[0,1,1,0],[0,1,1,1],[1,1,1,0]]",
@@ -155,7 +155,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"34.4K\", \"totalSubmission\": \"58.6K\", \"totalAcceptedRaw\": 34398, \"totalSubmissionRaw\": 58566, \"acRate\": \"58.7%\"}",
"stats": "{\"totalAccepted\": \"35.2K\", \"totalSubmission\": \"60K\", \"totalAcceptedRaw\": 35176, \"totalSubmissionRaw\": 60046, \"acRate\": \"58.6%\"}",
"hints": [
"For each row i, create an array nums where: if mat[i][j] == 0 then nums[j] = 0 else nums[j] = nums[j-1] +1.",
"In the row i, number of rectangles between column j and k(inclusive) and ends in row i, is equal to SUM(min(nums[j, .. idx])) where idx go from j to k. Expected solution is O(n^3)."