Help with code logic

i am getting the approach to solve this problem can you please help me

  1. take 2 pointers odd and even
  2. travese on LL if current node->data is odd put that after odd
    if node->data is even put that after even
    (make sure that it(current node) is completely detached from the original list
  3. at end last node of odd LL should point to even list

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.