Wrong Answer in Test Case 2

Here is the link of my Code:

my logic is to move even nodes to the end

Refer to the Code: https://ide.codingblocks.com/s/209609

It is well commented.

Can u help me in my code

the links are wrongly updated
the code needs a lot of update
and might even fail evensimple test cases

Please tell some test cases only .

This will be great help . I will rectify code by myself.

4
1 1 1 2

is giving wrong o/p

Thank U mam . One if else missing. Got AC.

1 Like