1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-02 22:13:28 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 16:56:27 +08:00
parent e730aa6794
commit ad15da05aa
2517 changed files with 7358 additions and 7332 deletions

View File

@@ -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."
],