NZEC error in java

Getting NZEC error Why??
PLZ Help

Your code fails for this test case


@betlista its working fine for this test case as well, i checked it

No, it’s not, sorry for the missing link, here it is -

1 Like

thanks a lot betlista:):slight_smile:

@betlista one more problem . i have devoted my whole day in solving this but getting NZEC error .i checked for so many testcases
Plz check it at below link

Mysolution :-

Problem link:-

I just implemented the editorial of this question.