每日一题655. 输出二叉树

Posted 王六六同学

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了每日一题655. 输出二叉树相关的知识,希望对你有一定的参考价值。

655. 输出二叉树


复习求树的高度

/**
 * Definition for a binary tree node.
 * public class TreeNode 
 *     int val;
 *     TreeNode left;
 *     TreeNode right;
 *     TreeNode() 
 *     TreeNode(int val)  this.val = val; 
 *     TreeNode(int val, TreeNode left, TreeNode right) 
 *         this.val = val;
 *         this.left = left;
 *         this.right = right;
 *     
 * 
 */
class Solution 
   
    public List<List

以上是关于每日一题655. 输出二叉树的主要内容,如果未能解决你的问题,请参考以下文章