## Check leaf nodes of binary tree are at same level – BFS / example

What is level in binary tree?

Level is distance or hops of node with respect to root node. The root node is considered to be at level 0, so children of root node will be at level 1 (level of root node + 1). So, we can calculate the level of all the nodes in binary tree.

As an example, consider the tree: