Csacademy LCA problem doubts

Revision en3, by kyrros, 2020-12-20 16:36:22

This problem falls under the LCA category in Csacademy's tasks list.
How to apply LCA when given graph may not be a tree?

Problem

As I've understood it, to answer a given query of two vertices namely A and B, we have to find the number vertices which are present in all the paths from vertex A to vertex B.

Links to similar problems would be appreciated. Thanks!!

Tags #help, #doubt

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English kyrros 2020-12-20 16:36:22 14
en2 English kyrros 2020-12-20 16:32:22 2
en1 English kyrros 2020-12-20 16:31:50 481 Initial revision (published)