摘要: 1.1、题目1 剑指 Offer 32 - I. 从上到下打印二叉树 1.2、解法 其实这三道题都是广度遍历二叉树的方式。 通过队列实现,存进数组中返回。 1.3、代码 /** * Definition for a binary tree node. * public class TreeNode 阅读全文
posted @ 2021-09-06 16:21 程序员khaos 阅读(81) 评论(0) 推荐(0) 编辑