I tried this question for more than 6 times but sometimes i get TLE and sometimes some test cases are passed and some are not .Please sir/ma’am clear my doubt by sending the
right code.
Doubt is not solved
@mayurjhode55 look at this code i have commented here too if faces any doubt ask me https://ide.codingblocks.com/s/224936
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.