Even After Odd Failed Test Case

getting two passed and two wrong test cases.
what was the problem

@Pramod123 hey you have missed the test cases when any of the even or odd list is empty,also take care of the order as order of elements in odd and even linked list remain same.

https://ide.codingblocks.com/s/224547 getting TLE in two test cases

@Pramod123 hey use this logic ,apka logic me order maintain nhi reh rha ,ap two separate linked list bnao by taking even head ,even tail and ||ly for odd and if element odd add to the odd linked list and if even than add to odd ,now atttach two linked list by taking care of NULL conditions.

ok…sir let me try…

@Pramod123 yes,if any doubt then feel free to ask.

thank u sir …it works fine and now my code becomes too short and efficient.

@Pramod123 anytime bro and well done :slight_smile: