MCPcopy Create free account
hub / github.com/algorithm006-class02/algorithm006-class02 / buildTree

Function buildTree

Week_02/G20200343030524/m27.go:18–41  ·  view source on GitHub ↗

* * @lc app=leetcode.cn id=105 lang=golang * * [105] 从前序与中序遍历序列构造二叉树 */ @lc code=start ** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */

(preorder []int, inorder []int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected