发表评论取消回复
相关阅读
相关 【LeetCode】 Maximum Depth of Binary Tree 二叉树的最大深度
要求:求二叉树的深度(二叉树的深度为最远叶子节点到根节点的距离,即根节点到最远叶子节点的距离) Given a binary tree, find its maxim
相关 leetcode 257. Binary Tree Paths 深度优先遍历DFS
Given a binary tree, return all root-to-leaf paths. For example, given the following bi
相关 leetcode 144. Binary Tree Preorder Traversal 二叉树前序遍历 + 深度优先遍历DFS
Given a binary tree, return the preorder traversal of its nodes’ values. For example:
相关 leetcode 654. Maximum Binary Tree
1.题目 Given an integer array with no duplicates. A maximum tree building on this array
相关 leetcode 110. Balanced Binary Tree(平衡二叉树的判断) DFS深度优先遍历
Given a binary tree, determine if it is height-balanced. For this problem, a height-bal
相关 leetcode 100. Same Tree 二叉树DFS深度优先遍历
Given two binary trees, write a function to check if they are equal or not. Two binary
相关 leetcode 662. Maximum Width of Binary Tree 二叉树最大宽度 + 深度优先遍历DFS
Given a binary tree, write a function to get the maximum width of the given tree. The wi
相关 leetcode 655. Print Binary Tree 矩形打印二叉树 + 深度优先遍历DFS
Print a binary tree in an m\n 2D string array following these rules: The row number m s
相关 leetcode 654. Maximum Binary Tree 递归构造最大二叉树 + 深度优先遍历DFS
Given an integer array with no duplicates. A maximum tree building on this array is defi
相关 leetcode 617. Merge Two Binary Trees 二叉树合并 + 深度优先遍历DFS
Given two binary trees and imagine that when you put one of them to cover the other, som
还没有评论,来说两句吧...