The explained code is failing on given testcase

n = 2

a[] = { -2, -1 }

hi @tusharbajaj200153_02bc6c0c5583c81d please send the code also

here it is

hi @tusharbajaj200153_02bc6c0c5583c81d buddy missing = in line 25 (for loop)

1 Like

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.