Evenodd_linkedlists


i am getting runtime error

you have to create two new linked list but you are just holding the address of first even element and then next node is not connected to first one.
so make 4 pointers
1 even head
2 odd head
3 even tail
4 odd tail. and then iterate and keep adding node to respective list