SIR ITS GIVING CORRECT ANSWER ON GIVEN TEST CASES BUT ON SUBMITTING IT IS SHOWING ERROR

please sir reply for this query

@rupeshjha909
It seems like you have sent code for another question
Please check your code again

sir in this my only one test case passed tell me correction not reference please https://ide.codingblocks.com/s/240322

Hey @rupeshjha909
Your code and logic seem fine
Unfortunately I was unable to find the error
The best I can do right now is send you the solution to this to cross verify since I will have to do the same so its better if you find your error yourself
So if you want that I’ll be happy to send that to you

okay u send but i used for many self test cases it is working now but when i am submitting it is not working

@rupeshjha909

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.