I was solving PERCAPTA Problem from this June Cookoff
I am not able to understand why one code is getting AC and other WA although The Logic is same and 90% of code is also same.
I am applying DFS to solve the problem.
It will be a great help if anybody figure out what is wrong in the WA Code.
Thank you so much in advance!