Skip to content

Latest commit

 

History

History

10.FindLargestValue

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Find Largest Value in Each Tree Row(在每个树行中找最大值)

LeetCode 515

题目

您需要在二叉树的每一行中找到最大的值。

示例:

输入:

          1
         / \
        3   2
       / \   \
      5   3   9

输出: [1, 3, 9]

思路

点击展开 // TODO

代码实现

C C++ Java Objective-C Swift Python JavaScript Go PHP
🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔