Test Case 0 failing

Can you please specify the credentials of test case 0 because I am not able to understand that why is the code failing this particular test case?

hey @mrpareek you should try
4
8 2 3 6
for this output will be
-1 3 6 8
Happy to help :smile: Keep coding

1 Like

The output for
5
2 3 6 5 4
would be
3 6 -1 - 1 -1
or
3 6 -1 6 6
Please help me by clarifying this!

The second option is correct answer @mrpareek ,moreover i lost your doubt link, therefore You won’t be able to give your feedback on my service so I would request you to give a heart on my comments on this post if you find my service helpful :grinning:
Happy to help , keep coding :+1:

1 Like

But Sir this type of test case has not been included because I just tested with the first element in my program and all the test cases got passed!

Even though my code was giving first option as the answer!

Yes @mrpareek maybe test cases are too weak for this problem. But you got the concept right , didn’t you? :grinning:

1 Like

Yeah I got it all right just because of you and I have corrected the code too.So Thank You!!!

1 Like

I’m always here to help my students, keep coding @mrpareek :grinning:

1 Like

Sure…hope to stay in touch!!