Why it is giving TLE

I think my code is correct please check…

hello @ishank01

pls clear ur cache and try to submit again.

it is working fine on my side

How I can clear cache

clear ur browsing history

Thanks, But how cache is related to the submission…can you explain

it will clear to u when u will learn about cache memory and its working in ur os subject

Okay, Thank you so much

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.