Sir can you please give me an idea about what is wrong in the code written?
Regarding the code written
Not complete as in? Is the logic applied wrong?
No sir, this is not the one I have written else it would show error as the function is not even returning sth. Here is the code https://ide.codingblocks.com/s/425272
check now:
i have commented the mistake:
if you have any doubt you can ask here:
Happy Learning!!
Oh right, didn’t see before. Thanks
But the answer is still coming wrong in the test cases
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.