Wrong asnwer in last test case

wrong answer in last test case.

hello @mukuljoshi2711

how u r mainting relative order of positive and negative ?

ur code is correct , the input file of last test case has each list elements in seprate line thats why p[yrhon solution is failing.
code it in c++ ,it will work fine

Please update the test input as I am not good in c++.

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.