mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"8.8K\", \"totalSubmission\": \"15.4K\", \"totalAcceptedRaw\": 8792, \"totalSubmissionRaw\": 15446, \"acRate\": \"56.9%\"}",
|
||||
"stats": "{\"totalAccepted\": \"8.8K\", \"totalSubmission\": \"15.4K\", \"totalAcceptedRaw\": 8793, \"totalSubmissionRaw\": 15447, \"acRate\": \"56.9%\"}",
|
||||
"hints": [
|
||||
"For each zero, you can calculate the number of zero-filled subarrays that end on that index, which is the number of consecutive zeros behind the current element + 1.",
|
||||
"Maintain the number of consecutive zeros behind the current element, count the number of zero-filled subarrays that end on each index, sum it up to get the answer."
|
||||
|
Reference in New Issue
Block a user