题目描述:
LeetCode 515. Find Largest Element in Each Row
You need to find the largest value in each row of a binary tree.
Example:
Input:
1
/ \
3 2
/ \ \
5 3 9
Output: [1, 3, 9]
题目大意:
给定二叉树,返回其每一行的最大元素。
解题思路:
二叉树的层次遍历 ...