二叉树递归遍历出来怎么放到一个切片里呢 ,带着切片遍历好像有问题。

wjzz · 2019-03-27 13:02:25 · 858 次点击

你需要使用指针 func (t *TreeNode) traverse(s *[]int)

#1
更多评论