mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"13.8K\", \"totalSubmission\": \"53.6K\", \"totalAcceptedRaw\": 13808, \"totalSubmissionRaw\": 53596, \"acRate\": \"25.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"13.8K\", \"totalSubmission\": \"53.6K\", \"totalAcceptedRaw\": 13817, \"totalSubmissionRaw\": 53622, \"acRate\": \"25.8%\"}",
|
||||
"hints": [
|
||||
"For every possible x - the final value of the array, calculate the number of seconds needed to make all elements equal to x.",
|
||||
"Notice that if you take two consecutive occurrences (i, j) of x, then the number of operations to make segment [i + 1, j - 1] equal to x is floor((j - i) / 2)"
|
||||
|
Reference in New Issue
Block a user