mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-08 17:01:42 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"24.9K\", \"totalSubmission\": \"48K\", \"totalAcceptedRaw\": 24895, \"totalSubmissionRaw\": 48045, \"acRate\": \"51.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"24.9K\", \"totalSubmission\": \"48.1K\", \"totalAcceptedRaw\": 24904, \"totalSubmissionRaw\": 48062, \"acRate\": \"51.8%\"}",
|
||||
"hints": [
|
||||
"Notice that the number of 1’s to be grouped together is fixed. It is the number of 1's the whole array has.",
|
||||
"Call this number total. We should then check for every subarray of size total (possibly wrapped around), how many swaps are required to have the subarray be all 1’s.",
|
||||
|
Reference in New Issue
Block a user