OddEven LinkedList

1 test case fails
Please check my code ,what’ s wrong :

Hey @coder_girl how many test cases has your code passed?

I was looking at your implementation, and it seems to work well, but fails on side cases like what if there’s only 1 digit in a linked list. Try to handle that cases too

i’m not getting it , what to add next?

Try running this test case
1
2
And see the output.

hey @coder_girl you are missing this test case
8
9 7 5 3 67 21 89 23
try to resolve it :smile:

It is solved now. :grin:

Good @coder_girl you did it well :slight_smile:

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.