예제 #1
0
 public int depthRight()
 {
     if (right != null)
     {
         return(right.depth() + 1);
     }
     return(0);
 }
예제 #2
0
 public int depthLeft()
 {
     if (left != null)
     {
         return(left.depth() + 1);
     }
     return(0);
 }