0for this i will search the first element of seconnd list in the first list, when i get it i will make the next of that element in first list to the next of that element in second list.
for example l1={a,b,c,d} l2={c,d,e,f} here i will search first element of l2 in l1 here it is 'c' then i will replace next of 'c' in first list to next of 'c' in list l2... now l3 ={a,b,c,d,e,f} my comlexity is 0(length of list l1). -neeraj -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@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.