Topic: Tree Problem / Level: advanced

Problem: Implement a function to calculate the number of leaf nodes at each level in a binary tree.

Run the code to see the output here...