wrong answer in last test case.
Wrong asnwer in last test case
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.