Hello sir/ma’am,
could you please tell why does my code shows TLE? I am unable to get the mistake… Sharing my code.
Class Assignment TLE
@priyanshi.agarwal3405 hey priyanshi the think is in your implemented code the output will submit without # and : symbol and use long long int to submit the solution
Why do i need to remove # and : symbols? That would change the output format. Also tried long long int and even after removing these symbols from output still TLE is there.
@priyanshi.agarwal3405 hey priyanshi there is a more optimized approach of this question is like think a dynamic approach.
refer to this link
link for this question
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.