How to count the number of right children in a binary tree?
- by flopex
How to count the number of right children in a binary tree?
This means that I only want the children marked as right.
Ex. (Left | Right)
F(Root)
G | H
T U | I J
The right children would be U,H,and J.
What would be the algorithm to find these.