I am getting the wrong output , 2 must be deleted ,but dont know why getting wrong output
input:
1
7
5 3 2 4 7 6 8
3
2 3 5
output:
6 4 2 7 8
I am getting the wrong output , 2 must be deleted ,but dont know why getting wrong output
input:
1
7
5 3 2 4 7 6 8
3
2 3 5
output:
6 4 2 7 8
check again
when I run your code
then your output comes
6 4 7 8
yes ,sir i just corrected that but now for some of my test case not running
could you please help me out
sorry i missed your doubt
your mistake is you have to print each testcase in new line
so just put an endl after each testcase
Modified Code
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.