sorry bt d ques is not clear....
if first linked list has (a b h g r t s g h) nodes and second linked list
has (g r t h s w e r t  ) then what should b d result??

On Thu, Oct 7, 2010 at 7:48 PM, neeraj agarwal
<itsneerajagar...@gmail.com>wrote:

> 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<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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.

Reply via email to