Broken test cases

The test case does not accept output: -5 -4 0 4 5 for input as 5 and only accepts -2 -1 0 1 2 for input 5

@phadnis.anurag Can you pleas elaborate your problem.

Yes,

Assume that we take input as 5 then there are multiple correct answers possible like:

-5 -4 0 4 5
-9 -8 0 8 9
-4 -2 0 2 4
-2 -1 0 1 2

But the judging environment only accepts -2 -1 0 1 2 as correct answer and returns wrong answer on all other answers

@phadnis.anurag The question might have forgot to mention the criteria that the numbers should be as large as possible.So answer will be : -2 -1 0 1 2

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.