getting wrong answer in chef and frog ...codechef question
Difference between en2 and en3, changed 148 character(s)
Please anybody help to get why I am getting wrong answer in question[Your text to link here...](https://www.codechef.com/problems/FROGV)↵
my solution is [Your text to link here...](https://www.codechef.com/viewsolution/39123486)

I am finding all connected components in the graph and assigning a color to it and the two nodes having same color print "YES"↵
else print<<"NO" 

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Tenac-ious- 2020-10-25 22:59:44 148
en2 English Tenac-ious- 2020-10-25 22:55:28 71 Tiny change: 'lp to get the error in quest' -> 'lp to get why I am getting wrong answer in quest'
en1 English Tenac-ious- 2020-10-25 22:51:58 224 Initial revision (published)