摘要:
class Solution { public List<String> binaryTreePaths(TreeNode root) { List<String> result = new ArrayList(); if(root==null) return result; List<Intege 阅读全文
posted @ 2022-02-26 21:18
明卿册
阅读(28)
评论(0)
推荐(0)
摘要:
class Solution { public boolean isBalanced(TreeNode root) { if(root == null) return true; return getHeight(root)== -1 ? false : true; } private int ge 阅读全文
posted @ 2022-02-26 15:02
明卿册
阅读(26)
评论(0)
推荐(0)

浙公网安备 33010602011771号