Assistance required to solve this problem.
Hello, mates. I was trying to solve this problem. But I don't know why my solution fails. Can anyone help me with this?
Full text and comments »
Assistance required for the question 833C
I tried to think of testcase where my testcase fails. But, unfortunately i couldn't up with any.
Here is the question
and
Here is my solution
Can anyone tell me any testcase where my code fails ?