InterviewBit Problems   Path with good nodes! : Unsolved

About the Path with good nodes! : Unsolved category (1)
Why my code is not working (1)
The given edges are bidirectional....mind it>>>>> (1)
Can anyone please tell me why this is not working for some test cases (2)
Getting memory limit exceeded.Please help! (2)
Partially correct ! Don't know why? (5)
Test With Custom Input and Test returning different results? (2)
Run as a custom input but run time it giving me an error (3)
Giving TLE .Help (2)
If you are getting wrong answer. Please Note! (3)