Open Clear2 opened 4 years ago
/*
1
\
2
/
3
*/
func main() {
node3 := TreeNode{Val: 3}
node2 := TreeNode{Val: 2, Left: &node3}
node0 := TreeNode{Val: 0 }
node1 := TreeNode{Val: 1, Right: &node2, Left: &node0}
result := inorderTraverSal(&node1)
fmt.Println(result)
}