It is compiling but is giving the wrong ans.Please help.
All evens after odds
Your code is not giving any output for the given sample test case.
If you add some comments to your code, i can check your code easily.
You can refer this https://www.geeksforgeeks.org/segregate-even-and-odd-elements-in-a-linked-list/
and verify your approach.
ok Thanks for the help.I shall try and let you know.
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.