Write a function to find the depth of a binary tree.
Simple way: public int FindDepthOfTree(RBNode n) { if (n == null) return 0; return Math.Max(FindDepthOfTree(n.LeftNode), FindDepthOfTree(n.RightNode)) + 1; }