mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 370,
|
||||
"dislikes": 24,
|
||||
"likes": 396,
|
||||
"dislikes": 26,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Sum of Distances in Tree\", \"titleSlug\": \"sum-of-distances-in-tree\", \"difficulty\": \"Hard\", \"translatedTitle\": null}, {\"title\": \"Delete Nodes And Return Forest\", \"titleSlug\": \"delete-nodes-and-return-forest\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Maximum Product of Splitted Binary Tree\", \"titleSlug\": \"maximum-product-of-splitted-binary-tree\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
||||
"exampleTestcases": "[-1,2,0,2,0]\n[-1,2,0]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"9.2K\", \"totalSubmission\": \"19.9K\", \"totalAcceptedRaw\": 9217, \"totalSubmissionRaw\": 19887, \"acRate\": \"46.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"9.7K\", \"totalSubmission\": \"20.9K\", \"totalAcceptedRaw\": 9667, \"totalSubmissionRaw\": 20903, \"acRate\": \"46.2%\"}",
|
||||
"hints": [
|
||||
"For each node, you need to find the sizes of the subtrees rooted in each of its children. Maybe DFS?",
|
||||
"How to determine the number of nodes in the rest of the tree? Can you subtract the size of the subtree rooted at the node from the total number of nodes of the tree?",
|
||||
|
Reference in New Issue
Block a user