Count leaf nodes
Filed under Olam
The question
Write a program to count the number of leaf nodes in a binary tree.
No write-up yet. Related questions below have one.
Related Olam questions
Collected from public candidate posts and coding forums. Updated Nov 2026.