2019年3月15日

从上往下打印二叉树

摘要: 利用arraylist构造treenode的队列,将每个结点的值输出并将每个结点的左右子树依次入队。 import java.util.ArrayList; public class Solution { public ArrayList<Integer> PrintFromTopToBottom( 阅读全文

posted @ 2019-03-15 19:44 q2013 阅读(93) 评论(0) 推荐(0) 编辑

导航