How would anyone convert a array based tree into per-order? The array contains:
Cheers
public void preOrder(int index) {
if (index >= currSize) {
return;
}
System.out.println(items[index]);
preOrder(2 ^ index + 1); //left
preOrder((2 ^ index) + 2); //right
}
Should be like the following.