mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 510,
|
||||
"dislikes": 185,
|
||||
"likes": 528,
|
||||
"dislikes": 189,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Two Sum\", \"titleSlug\": \"two-sum\", \"difficulty\": \"Easy\", \"translatedTitle\": null}, {\"title\": \"Max Number of K-Sum Pairs\", \"titleSlug\": \"max-number-of-k-sum-pairs\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Find All Possible Recipes from Given Supplies\", \"titleSlug\": \"find-all-possible-recipes-from-given-supplies\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
||||
"exampleTestcases": "[1,3,5,7,9]\n[1,1,1,3,3,3,7]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"23K\", \"totalSubmission\": \"81.5K\", \"totalAcceptedRaw\": 22987, \"totalSubmissionRaw\": 81526, \"acRate\": \"28.2%\"}",
|
||||
"stats": "{\"totalAccepted\": \"23.6K\", \"totalSubmission\": \"83.5K\", \"totalAcceptedRaw\": 23554, \"totalSubmissionRaw\": 83525, \"acRate\": \"28.2%\"}",
|
||||
"hints": [
|
||||
"Note that the number of powers of 2 is at most 21 so this turns the problem to a classic find the number of pairs that sum to a certain value but for 21 values",
|
||||
"You need to use something fasters than the NlogN approach since there is already the log of iterating over the powers so one idea is two pointers"
|
||||
|
Reference in New Issue
Block a user