What if we have an array :-

index -> 1 2 3 4 5
value -> 1 2 3 4 5

How will ANY logn solution determine all ALL elements are equal to it's
index value ? Maybe I misunderstand.

Thank you,
Ashim

On Sat, Dec 4, 2010 at 5:38 PM, ankit sablok <[email protected]> wrote:

> u can then move to other advance data structures
>
> On Sat, Dec 4, 2010 at 4:58 PM, mo...@ismu <[email protected]> wrote:
>
>> in worst case it takes o(n)time
>> if all the elemets match with their indexes
>>
>>
>> --
>> 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]<algogeeks%[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]<algogeeks%[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.

Reply via email to