mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 06:51:41 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 269,
|
||||
"dislikes": 10,
|
||||
"likes": 277,
|
||||
"dislikes": 11,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"exampleTestcases": "[1,4,2,7]\n2\n6\n[9,8,4,2,1]\n5\n14",
|
||||
@@ -137,7 +137,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"4.5K\", \"totalSubmission\": \"9.8K\", \"totalAcceptedRaw\": 4520, \"totalSubmissionRaw\": 9752, \"acRate\": \"46.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"4.6K\", \"totalSubmission\": \"9.9K\", \"totalAcceptedRaw\": 4591, \"totalSubmissionRaw\": 9914, \"acRate\": \"46.3%\"}",
|
||||
"hints": [
|
||||
"Let's note that we can count all pairs with XOR ≤ K, so the answer would be to subtract the number of pairs withs XOR < low from the number of pairs with XOR ≤ high.",
|
||||
"For each value, find out the number of values when you XOR it with the result is ≤ K using a trie."
|
||||
|
Reference in New Issue
Block a user