mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-02 22:13:28 +08:00
update
This commit is contained in:
@@ -137,7 +137,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"145K\", \"totalSubmission\": \"237.9K\", \"totalAcceptedRaw\": 145005, \"totalSubmissionRaw\": 237916, \"acRate\": \"60.9%\"}",
|
||||
"stats": "{\"totalAccepted\": \"145.5K\", \"totalSubmission\": \"238.7K\", \"totalAcceptedRaw\": 145495, \"totalSubmissionRaw\": 238674, \"acRate\": \"61.0%\"}",
|
||||
"hints": [
|
||||
"You need to think about two things as far as any window is concerned. One is the starting point for the window. How do you detect that a new window of 1s has started? The next part is detecting the ending point for this window.\r\n\r\nHow do you detect the ending point for an existing window? If you figure these two things out, you will be able to detect the windows of consecutive ones. All that remains afterward is to find the longest such window and return the size."
|
||||
],
|
||||
|
Reference in New Issue
Block a user