mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"306\", \"totalSubmission\": \"527\", \"totalAcceptedRaw\": 306, \"totalSubmissionRaw\": 527, \"acRate\": \"58.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"311\", \"totalSubmission\": \"535\", \"totalAcceptedRaw\": 311, \"totalSubmissionRaw\": 535, \"acRate\": \"58.1%\"}",
|
||||
"hints": [
|
||||
"Think if y cannot be small. You can solve a query in O(n/y), so if y is large enough, it won't be a problem.",
|
||||
"If y is small, like less than B, you can preprocess the answers for all such ys in O(n * B), then answer each such query in O(1).",
|
||||
|
Reference in New Issue
Block a user