Need help in Kickstart Round C 2nd question

Revision en1, by Admiral_General_Aladeen_, 2020-05-19 09:03:45

I have tried to solve this question using topological sort. I am getting correct output for 3 out of the 4 test cases given in the sample test cases on kickstart website. I will be very thankful if someone can help me find the mistake in my code. I have been trying to find any mistake but couldn't Here is the link to my solution — http://p.ip.fi/IVy2

Thank you

Tags #googlekickstart, #graphs, #topological_sort

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Admiral_General_Aladeen_ 2020-05-19 09:13:01 480
en1 English Admiral_General_Aladeen_ 2020-05-19 09:03:45 511 Initial revision (published)