can you tell me what is a problem with my code
i am doing here odd after even
Odd after even problem
Hello @Dhruv-Miglani-2090236747707980,
You are inserting elements in list e and o in a wrong way.
I have modified your code:
Hope, this would hep.
Give a like, if you are satisfied.
hey this code works on codingblocks complier but gives error in geeksforgeeks compiler
what to do
and can you also help me with this https://ide.codingblocks.com/s/107275 for question
https://practice.geeksforgeeks.org/problems/linked-list-in-zig-zag-fashion/1
this is only the function
Please, check the input and output format of geeks, if it is not matching with your code or not.
This could be a possible reason.
Also, check for the constraints given in the question on geeks, if your code is satisfying them or not.
Please, mark this doubt as resolved first and raise another doubt regarding second problem.
I’ll reply to it there.
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.