my code is working correctly in my ide, but when i am submitting my code, all the test cases are failing?, please if you can check for the problem?
Test cases failing
@saksham_thukral code is correct just check print order , you have to print like this for ex n=5
-1 1 -2 2 0
but your o/p
1 -1 2 -2 0
so push neg one before positive in vector.
dont forget to hit like and mark resolved if cleared 
1 Like