My code is showing error for one test case and I cant seem to find the cause for it. Please help me find the mistake I have made. Thanks! https://ide.codingblocks.com/s/401926
Code showing Error For one Test Case
You missed just a base case, see for test case:
1 0
0
Expected output is:
0
0
Yours is giving is:
0
1
Rest everything is fine in your code.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.