Diving array doubt


sir this is giving tle please help

@Shivanchal-Agarwal-2530139037020445
Your algorithm is correct, there is something wrong with the time limit. It is too tight for the test case to pass. I’ll inform my superiors about the same. till then you can continue with the rest of the course.

you can submit here https://hack.codingblocks.com/app/practice/1/157/problem The limit is adjusted here.

thank you so much sir it worked!

sir but it doesnt add my points to hacker blocks

@Shivanchal-Agarwal-2530139037020445
Yes because this was not your contest, for your contest the time limit is not yet updated.

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.