JobsJob TrackerJob alerts

Olam ยท 6 questions

All 6Coding 6
  • First non-repeating characterCoding
  • Merge two sorted listsCoding
  • Count leaf nodesCoding
  • Maximum path sum between leavesCoding
  • Longest Common PrefixCoding
  • First repeated characterCoding
โ† Olam questions
  1. Interview questions
  2. Olam
  3. Count leaf nodes
Coding

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

  • Merge two sorted lists
  • Maximum path sum between leaves
  • First repeated character
โ† Merge two sorted listsMaximum path sum between leaves โ†’

Collected from public candidate posts and coding forums. Updated Nov 2026.