Hello Codeforces,
I was learning about LCA today. I found some video tutorial which explained a naive method.
So, I wanted to know the best Algorithm for finding LCA between two nodes.
Thank you!
Fastest way to calculate LCA?
Hello Codeforces,
I was learning about LCA today. I found some video tutorial which explained a naive method.
So, I wanted to know the best Algorithm for finding LCA between two nodes.
Thank you!