leetle

Daily challenge for 2025-05-08

128. Sum of Leaf Values

Write a function solve that returns the sum of all leaf node values in a binary tree.

Example:
Input: [1,2,3]
Output: 5

Run this challenge interactively in Python or JavaScript when the app loads.