Skip to content

Latest commit

 

History

History
65 lines (29 loc) · 964 Bytes

File metadata and controls

65 lines (29 loc) · 964 Bytes

中文文档

Description

Given a binary tree, return the sum of values of its deepest leaves.

 

Example 1:

Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8]

Output: 15

 

Constraints:

    <li>The number of nodes in the tree is between&nbsp;<code>1</code>&nbsp;and&nbsp;<code>10^4</code>.</li>
    
    <li>The value of nodes is between&nbsp;<code>1</code>&nbsp;and&nbsp;<code>100</code>.</li>
    

Solutions

Python3

Java

...