My solution for KTHPATH problem gives wrong answer. But I am unable to find a test case where it doesn’t work. Can someone please give a test case where this fails?
link to problem : CodeChef: Practical coding for everyone
link to solution : CodeChef: Practical coding for everyone