How can I get the path between two nodes if I've used LCA algorithm? What is the fastest way to get the smallest path between those nodes?
How can I get the path between two nodes if I've used LCA algorithm? What is the fastest way to get the smallest path between those nodes?