Guest User

Untitled

a guest
Apr 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1. public int pathHeight(T valor) {
  2.         if (findNode(valor) != null) {
  3.             BSTNode<T> nodo = findNode(valor);
  4.             return (height(root)-height(nodo));
  5.         } else {
  6.             return -1;
  7.         }
  8.  
  9.     }
Add Comment
Please, Sign In to add comment