the elements are random ... On Tue, Jul 19, 2011 at 12:01 AM, Saket Choudhary <[email protected]> wrote:
> Yeah if they are in some order then its possible doing it in O(n) else > reading should itself take O(n^2) in the worst case. > > > On 18 July 2011 23:54, ankit sambyal <[email protected]> wrote: > >> Are the elements of the array in some order, or are they random ? >> >> -- >> 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. >> >> > -- > 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. > -- 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.
