1302. Deepest Leaves Sum

https://leetcode.com/problems/deepest-leaves-sum

Description

Given the root of a binary tree, return the sum of values of its deepest leaves. Example 1:

Example 2:

Constraints:

  • The number of nodes in the tree is in the range [1, 104].

  • 1 <= Node.val <= 100

ac

Last updated

Was this helpful?