mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"48.5K\", \"totalSubmission\": \"84.7K\", \"totalAcceptedRaw\": 48518, \"totalSubmissionRaw\": 84715, \"acRate\": \"57.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"48.5K\", \"totalSubmission\": \"84.7K\", \"totalAcceptedRaw\": 48522, \"totalSubmissionRaw\": 84723, \"acRate\": \"57.3%\"}",
|
||||
"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)."
|
||||
|
Reference in New Issue
Block a user