MCPcopy
hub / github.com/kunal-kushwaha/DSA-Bootcamp-Java / height

Method height

lectures/20-trees/code/introduction/BST.java:23–28  ·  view source on GitHub ↗
(Node node)

Source from the content-addressed store, hash-verified

21 }
22
23 public int height(Node node) {
24 if (node == null) {
25 return -1;
26 }
27 return node.height;
28 }
29
30 public boolean isEmpty() {
31 return root == null;

Callers 2

insertMethod · 0.95
balancedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected