力扣429. N 叉树的层序遍历(JavaScript)

var levelOrder = function(root) {
    let arr=[]
    let qq=[root]
    if(root==null){
        return arr
    }
    while(qq.length){
        let len=qq.length
        let arr1=[]
        for(let i=0;i

你可能感兴趣的:(力扣算法题,leetcode,javascript,算法)