@sunny oh... i cudnt understand.....can u plz explain by an example On Jun 29, 7:58 pm, sunny agrawal <sunny816.i...@gmail.com> wrote: > I am not using extra space as i am not allocating new memory for storing > Nodes > i m using just 2 pointers on the same list, i think that will be allowed > > > > On Wed, Jun 29, 2011 at 8:18 PM, Nishant <mittal.nishan...@gmail.com> wrote: > > @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 <sunny816.i...@gmail.com> 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 > > > <mittal.nishan...@gmail.com>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 algogeeks@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > algogeeks+unsubscr...@googlegroups.com. > > > > 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 algogeeks@googlegroups.com. > > To unsubscribe from this group, send email to > > algogeeks+unsubscr...@googlegroups.com. > > 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 algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.