Test cases not passed

Your coding blocks ide is not accessible , please provide the correct one.

How ever you can following approach :-
approach: calculate the prefix sum and check whether it has already been calculated somewhere or not(using binary search). If yes then the answer is true else check it iteratively.

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.