mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
update
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"950\", \"totalSubmission\": \"1.8K\", \"totalAcceptedRaw\": 950, \"totalSubmissionRaw\": 1828, \"acRate\": \"52.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"951\", \"totalSubmission\": \"1.8K\", \"totalAcceptedRaw\": 951, \"totalSubmissionRaw\": 1829, \"acRate\": \"52.0%\"}",
|
||||
"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