My code is not passing the test cases :- please help me

Hello @anshulgurawalia your array size as per the constraints is very less.

now its okk?

And make your temp array of e-l+1

??? why ? i have changed the temp array size to same as original array

The code which you have shared I that it is 1000.

can you please correct this code

@anshulgurawalia check this

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.