1 test case fails
Please check my code ,what’ s wrong :
OddEven LinkedList
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.
It is solved now.
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.