Problem faced while submitting the code

when i run the code the output is correct, but when i submit it, the compiler shows run error. what to do

@RUPESH Check the constraints given in the question:
Constraints:
1 <= N <= 100000

1 <= t <= 20

-100000000 <= A[i] <= 100000000

You are restricting the size of the array to 20 which is causing run time error

1 Like

thank you pratyush!!!
it worked … very much appreciated…

1 Like