Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private class Node {
- private int id;
- private int size;
- private Node parent = this;
- private Node[] immediateChildren = new Node[0];
- private Node largestChild = null;
- Node(int i) {
- this.id = i;
- this.size = 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement