The code showing run error

this is my code .
it’s showing correct output for sample input.

Hey @Adi_choudhary,
In line 19, increase the value of maxn to 100000. Because since the test cases are large it will give you Out of bounds error.

1 Like