2019年6月26日

[LeetCode] 103. 二叉树的锯齿形层次遍历

摘要: 题目链接 : https://leetcode cn.com/problems/binary tree zigzag level order traversal/ 题目描述: 给定一个二叉树,返回其节点值的锯齿形层次遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替进行)。 例 阅读全文

posted @ 2019-06-26 19:58 威行天下 阅读(191) 评论(0) 推荐(0) 编辑

[LeetCode] 102. 二叉树的层次遍历

摘要: 题目链接 : https://leetcode cn.com/problems/binary tree level order traversal/ 题目描述: 给定一个二叉树,返回其按层次遍历的节点值。 (即逐层地,从左到右访问所有节点)。 例如: 给定二叉树: [3,9,20,null,null 阅读全文

posted @ 2019-06-26 19:57 威行天下 阅读(149) 评论(0) 推荐(0) 编辑

导航