Even after odd ll


not able to understand what’s wrong with my code

hi @nischay1111 if you dry run your code you will see that nothing is getting modified actually, If you want to change the order of the ll then you have to re-assign the next of nodes, which you are not doing.

solved successfully
Thanks for help !

1 Like

@nischay1111 please mark the doubt as resolved :slight_smile: