Hello all I need to find the child nodes of a node in a binary tree.I was just wondering if this will return the number of child nodes thanks.
public int FindChildNodes() { if (RightNode == null && LeftNode == null) { return 1; } else { return RightNode.FindChildNodes() + LeftNode.FindChildNodes(); } }