EVEN ODD LINKEDLIST

https://ide.codingblocks.com/s/415094 ,
Why My code is not Running?

Hello @CODER_JATIN could you please explain your logic so that we can find the error in less time.

BHAIYA, jese hi koi even element mil rha usko end mai bhej raha or prev ko next ke next se jod rha

@CODER_JATIN you are adding the odd elements address into the
prev node then dont you think you should add the nide end ater prev inorder to add the even elements after odd?

@CODER_JATINas you are making separate two nodes then simply what you can do is add the odd elements in one node and the even elements in another list.
and in end do check whether your odd is not empty then attach the even to the end of the odd.

bhaiya , ye jo mene code likha hai isme kya dikkat hai?

whenever you are making use of end and prev then you are making wrong.

you have raised the doubt again?

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.