I am getting 2 wrong test cases. My code is separating the odd and even numbers perfectly, and hence I think its because of the ordering issue. Can you check my code and why the error is coming?
What should be the order of odd numbers and even numbers among themselves?
how can I maintain the order?
@Doctor_Insult just simply maintain two ll one for even ,one for odd and than start traversing the main ll and if cirrent is odd then attach that ahead of odd ll and if even than attach at even ll ,and last me dono ll ko attach krlo.
thanks a lot for your help