摘要: /** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ func constructFromPrePost(preord 阅读全文
posted @ 2022-03-31 16:51 ☞@_@ 阅读(18) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ func buildTree(inorder []int, po 阅读全文
posted @ 2022-03-31 16:31 ☞@_@ 阅读(23) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ func buildTree(preorder []int, i 阅读全文
posted @ 2022-03-31 16:13 ☞@_@ 阅读(28) 评论(0) 推荐(0) 编辑