mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 714,
|
||||
"likes": 717,
|
||||
"dislikes": 16,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Maximum Depth of Binary Tree\", \"titleSlug\": \"maximum-depth-of-binary-tree\", \"difficulty\": \"Easy\", \"translatedTitle\": null}]",
|
||||
@@ -167,7 +167,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"18.2K\", \"totalSubmission\": \"46.4K\", \"totalAcceptedRaw\": 18159, \"totalSubmissionRaw\": 46387, \"acRate\": \"39.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"18.2K\", \"totalSubmission\": \"46.4K\", \"totalAcceptedRaw\": 18191, \"totalSubmissionRaw\": 46445, \"acRate\": \"39.2%\"}",
|
||||
"hints": [
|
||||
"Try pre-computing the answer for each node from 1 to n, and answer each query in O(1).",
|
||||
"The answers can be precomputed in a single tree traversal after computing the height of each subtree."
|
||||
|
Reference in New Issue
Block a user