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