yeah i've solved it using binary search but i want to know more solutions On Oct 25, 10:59 am, "Antony Vincent Pandian.S." <sant...@gmail.com> wrote: > Do a binary search > > On Sun, Oct 25, 2009 at 12:13 AM, naren <lalavat38na...@gmail.com> wrote: > > > You have a sorted array of n elements some of them occur more than > > once. How can we find the index of an element in time t which is less > > than O(n). > > -- > Luv, > S.Antony Vincent Pandian
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---