I am trying to solve the question from today’s GeeksForGeeks Hiring Challenge 2020.
The Question is SPIDEY SENSE and i have used simple dfs traversal.
Sample test cases are passed. But when i submit the code it is showing WA?
Could you please tell the wrong in my code? Thanks in Advance
Link to the Question: Practice | GeeksforGeeks | A computer science portal for geeks
Link to the code: Online Compiler and IDE - GeeksforGeeks
If the above given link doesn’t work, try this SPIDEY SENSE - Pastebin.com