Node

Words
45
Reading
1 min
3y
Listen to this post
~1 min

class Node {

public final char value;

public Node left;

public Node right;

​

public Node(char value) {

    this(value, null, null);

}

​

/\*\* For testing. \*/

Node(char value, Node left, Node right) {

    this.value = value;

    this.left = left;

    this.right = right;

}

}

Node | Ecency