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,7 +11,7 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 278,
|
||||
"likes": 284,
|
||||
"dislikes": 43,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Clone Graph\", \"titleSlug\": \"clone-graph\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Copy List with Random Pointer\", \"titleSlug\": \"copy-list-with-random-pointer\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Clone N-ary Tree\", \"titleSlug\": \"clone-n-ary-tree\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
||||
@@ -52,7 +52,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"15.9K\", \"totalSubmission\": \"19.9K\", \"totalAcceptedRaw\": 15866, \"totalSubmissionRaw\": 19873, \"acRate\": \"79.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"16.4K\", \"totalSubmission\": \"20.5K\", \"totalAcceptedRaw\": 16371, \"totalSubmissionRaw\": 20509, \"acRate\": \"79.8%\"}",
|
||||
"hints": [
|
||||
"Traverse the tree, keep a hashtable with you and create a nodecopy for each node in the tree.",
|
||||
"Start traversing the original tree again and connect the left, right and random pointers in the cloned tree the same way as the original tree with the help of the hashtable."
|
||||
|
Reference in New Issue
Block a user