MCPcopy Create free account
hub / github.com/apna-college/Alpha / Node

Class Node

16_BinaryTrees/Diameter.java:2–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1public class Diameter {
2 static class Node {
3 int data;
4 Node left, right;
5
6 public Node(int data) {
7 this.data = data;
8 this.left = null;
9 this.right = null;
10 }
11 }
12
13 public static int height(Node root) {
14 if(root == null) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…