102. 二叉树的层序遍历

102. 二叉树的层序遍历
- 时间复杂度
O(n) 每个节点访问一次 - 空间复杂度
O(n)
1 | func levelOrder(_ root: TreeNode?) -> [[Int]] { |
- Post title:102. 二叉树的层序遍历
- Post author:xxxixxxx
- Create time:2021-02-24 23:17:00
- Post link:https://xxxixxx.github.io/2021/02/24/2000-019-102. 二叉树的层序遍历/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments