Post

lc.107 自底向上层序遍历

相对于102.二叉树的层序遍历,就是最后把result数组反转输出一下就可以了

1
reverse(result.begin(), result.end()); // 反转数组
This post is licensed under CC BY 4.0 by the author.