Code not giving correct ans

Can you please help find why code not giving correct ans?

Hello @PranavM16 you have raised the same doubt twice.

@PranavM16 https://ide.codingblocks.com/s/406715
i have corrected your code and now it is passing all the test cases:
Happy Learning!!

Can you add a comment where you made the changes? It’ll be easy for me to identify my mistake.

Thanks a lot you for your help :smile:

you can mark this doubt as resolved!!
Happy Learning!!

@tusharaggarwal272 do you want me to do any rating for you? You have been helping me a lot. I don’t know how to rate, since I am using the discussion portal but you can send me a link to rate. like another TA ‘encoder’ has sent link to rate . Let me know if you need rating.

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.

1 Like

@PranavM16 yes please you can do the same by marking this doubt as resolved.
and there you will get the option for the same.
Happy Learning!!