Need Help in a graph questions

Revision en1, by ronaldocr7, 2020-04-18 23:21:55

question here is my_solution

My approach I have replaced vertices given in query with their immediate parent and then checked if the nodes in the sequence are child of each other....
My code has failed on 100th testcase that's only I am asking for help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ronaldocr7 2020-04-18 23:21:55 413 Initial revision (published)