Use a Hash Table.
Aseem


On Sat, Jul 16, 2011 at 12:28 AM, shady <[email protected]> wrote:

> i don't think it is possible to do it in O(n)... rather not even in
> O(nlogn) without modifying the list
>
>
> On Fri, Jul 15, 2011 at 11:23 PM, Nishant Mittal <
> [email protected]> wrote:
>
>> How will you delete duplicate odd numbers from a linked list in O(n) time
>>
>> --
>> 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.

Reply via email to