@sunny plz tell me the solution without using extra list...i've solved it using extra list...
On Jun 29, 7:38 pm, sunny agrawal <[email protected]> wrote: > maintain two pointers one at the tail of even number list one at tail of odd > Number list > traverse the list and add the number at required list > > On Wed, Jun 29, 2011 at 8:04 PM, Nishant Mittal > <[email protected]>wrote: > > > > > segregate even and odd nodes in a singly linked list.Order of even and > > odd numbers must be same... > > e.g:- > > i/p list is 4->1->3->6->12->8->7->NULL > > o/p list 4->6->12->8->1->3->7->NULL > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/algogeeks?hl=en. > > -- > Sunny Aggrawal > B-Tech IV year,CSI > Indian Institute Of Technology,Roorkee -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
