There are weak test cases for this problem.
Input : 9 1 2 3 -1 -1 -1 4 -1 -1
Expected result : 1 2 4
My wrong code gives : 1 2 and it gets accepted.
Please check.
Thanks.
There are weak test cases for this problem.
Input : 9 1 2 3 -1 -1 -1 4 -1 -1
Expected result : 1 2 4
My wrong code gives : 1 2 and it gets accepted.
Please check.
Thanks.