what is the approach for this problem
What is the approach for this problem
Are u not understanding the logic or question
i am not able to understand the logic
ok
u have to put even element after odd
like if u have LL 1->2->3->4->5
the asns 1->3->5->2->4
now just iterate the LL if there is odd number then put it in one link list
and if number is even put it in other link list
like u will get
1->3->5
2->4
now in tail of odd link list put head of even link list
u will get the ans
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.