LeetCode --- 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree 解题报告
Posted 杨鑫newlfe
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LeetCode --- 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree 解题报告相关的知识,希望对你有一定的参考价值。
Given two binary trees original
and cloned
and given a reference to a node target
in the original tree.
The cloned
tree is a copy of the original
tree.
Return a reference to the same node in the cloned
tree.
Note that you are not allowed to change any of the two trees or the target
node and the answer must be a reference to a node in the cloned
tree.
Example 1:
Input: tree = [7,4,3,null,null,6,19], target = 3 Output: 3 Explanation: In all examples the original and cloned trees are shown. The target node is a green node from the original tree. The answer is t
以上是关于LeetCode --- 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree 解题报告的主要内容,如果未能解决你的问题,请参考以下文章
1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
LeetCode(162):Find Peak Element