【Leetcode_總結】102. 二叉樹的層次遍歷 - python

Q: 給定一個二叉樹,返回其按層次遍歷的節點值。 (即逐層地,從左到右訪問所有節點)。 例如: 給定二叉樹: [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 返回其層次遍歷結果: [ [3], [9,20], [15,7] ] 鏈接:https://leetcode-cn.com/problems/bi
相關文章
相關標籤/搜索