Problem Given a binary tree, return the sum of values of its deepest leaves. Constraints: The number of nodes in […]

# Tag: binary-tree

## Best way to store the sum of all node depths?

Problem To sum up all the nodes’ depths in any given binary tree, I’ve written the following recursive algorithm: def […]

## LeetCode: Deepest Leaves Sum C#

Problem Given a binary tree, return the sum of values of its deepest leaves. Constraints: The number of nodes in […]

## Leetcode 662: maximum width of binary tree in Java

Problem I have the following solution to this problem. The idea is to compute the maximum width of a binary […]