2.1 KiB
2.1 KiB
id | title | author | description |
---|---|---|---|
bin-jump | Binary Jumping | Benjamin Qi | Introduces the problems of finding level ancestors in a tree and computing the lowest common ancestors. |
Binary Jumping
Lowest Common Ancestor
Tutorial
- CPH 18.1, 18.3
- cp-algorithms
- CF:
O(\log N)
queries andO(N)
memory - Wikipedia:
O(1)
queries andO(N)
preprocessing time- though explanation is not the greatest