0515. Find Largest Value in Each Tree Row
Last updated
Last updated
**Input:** root = [1,3,2,5,3,null,9]
**Output:** [1,3,9]**Input:** root = [1,2,3]
**Output:** [1,3]**Input:** root = [1]
**Output:** [1]**Input:** root = [1,null,2]
**Output:** [1,2]**Input:** root = []
**Output:** []