public class LCATree extends Object
| Constructor and Description |
|---|
LCATree(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
addNode(int parent) |
int |
depthOf(int node) |
int |
lcaOf(int a,
int b) |
int |
parentOf(int node) |
int |
size() |
Copyright © 2015. All rights reserved.