Even after odd cpp launchpad

y am i getting 2 even nums when the odd and even LL are connected . and y is this code not working for all even numbs or all odd nums ???

share ur code so that we find the error


run for
5
1 2 3 4 5
and for
3
1 1 1

Also write a return in the even function in the if part as u write in the odd function

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.