摘要: 问题 输入某二叉树的前序遍历和中序遍历的结果,请构建该二叉树并返回其根节点。 假设输入的前序遍历和中序遍历的结果中都不含重复的数字。 解决 /** * Definition for a binary tree node. * public class TreeNode { * int val; * 阅读全文
posted @ 2022-07-08 20:32 new_monkey 阅读(122) 评论(0) 推荐(0)