Given two nodes with parent pointers, find their lowest common ancestor.
3
0
5
1
1
2
node1
6
3
2
4
0
5
node2
8
6
tree=[3, 5, 1, 6, 2, 0, 8]
Step 1 / 3
Step 1:
Compute depths and lift the deeper node to align depths.
Pointers: node1=3, node2=6
Focus: select @ [3, 6]