O(m) is always better than O(m^2) :) :P
Simple merge sort
hint : start from end of the arrays

select the text in white font to see the hint :)

On Fri, Jul 8, 2011 at 1:56 AM, Dumanshu <duman...@gmail.com> wrote:

> given two sorted arrays a[m]  b[2*m], each contains m elements only.
> You
> need to merge those two arrays into second array b[2*m].
> anything better than O(m^2)????
>
> --
> 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.

Reply via email to