depth method

int depth()

Implementation

int depth() {
  if (isEmpty()) {
    return 0;
  }
  build();
  return depthWithNode(root);
}