Wrong answer in CHEFTRVL

I am getting wrong answer to the May cook off ques CHEFTRVL. Please provide some critical cases or tell what’s wrong in my code. Link-> CodeChef: Practical coding for everyone

Sorry to bother you all.Found the mistake.I was clearing the adjacency list in a shortcut(wrong) way.
Correct Solution-> CodeChef: Practical coding for everyone

glad that you found your mistake :slight_smile: