leetle

Daily challenge for 2025-05-05

125. Leaf Similar Trees

Write a function solve that checks if a binary tree has only one leaf node or none.

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

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