I am running my program in my IDE it is giving correct output there but test cases are getting failed.
Regarding program output
Don’t tell me the answer but just can you tell me what is going wrong. It is very easy problem but I don’t know why testcases getting failed
@krishnaSonavane one mistake I found was that there should be a space after coma like this ", " in the output. I am looking at your code for more bugs
@krishnaSonavane your code is giving incorrect answer for arrays where n != m
for eg for input
2 3
1 2 3
4 5 6
the output should be
1, 4, 5, 2, 3, 6, END
but your output is
1,4,0,0,5,2,3,6,0,END
Modify your code accordingly. Please mark your doubt as resolved if you are satisfied, you can always reopen it