i am unable to submit my code
earlier it showed wrong ans and then i corrected my approach, pls help me out
π‘ Religious People
kindly help me i am stuck on this, i do not find any error in my logic
Hello @Pritika,
Your code is causing TLE, not runtime error.
Resolve it.
If you canβt resolve it. Let me know.
But try hard before asking help.
sir i have been stuck on it for the past two days and i am not able to optimize it , pls help me out
Sure @Pritika,
Refer the following code:
I have written all the necessary comments for better understanding.
Hope, this would help.
Give a like, if you are satisfied.
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.