mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
update
This commit is contained in:
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"5.3K\", \"totalSubmission\": \"11.4K\", \"totalAcceptedRaw\": 5345, \"totalSubmissionRaw\": 11418, \"acRate\": \"46.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"5.4K\", \"totalSubmission\": \"11.4K\", \"totalAcceptedRaw\": 5361, \"totalSubmissionRaw\": 11444, \"acRate\": \"46.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