Code giving wrong answer


please tell me the wrong part of the code

hi @Shashank-Shekhar-2351214838461151

your logic and code both are correct

only mistake is you have to print ans for each testcase in new line
so just print endl after the loop used for printing merged list

i hope this clear now
if yes hit a like and don’t forgot to mark doubt as resolved :grinning:
if you have more doubts regarding this feel free to ask