Re: [algogeeks] Removing Duplicates In array and Linked list

2011-12-02 Thread kumar raja
@Karthikeyan:
I want linear time solution not nlogn

On 1 December 2011 23:42, Karthikeyan V.B  wrote:

> Hi,
>
> Create a binary search tree with elements , while inserting check for
> equal elements and delete it.
>
> But for insertion of n elements in a BST takes O(nlogn)
>
>  --
> 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.
>



-- 
Regards
Kumar Raja
M.Tech(SIT)
IIT Kharagpur,
10it60...@iitkgp.ac.in

-- 
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.



Re: [algogeeks] Removing Duplicates In array and Linked list

2011-12-01 Thread Karthikeyan V.B
Hi,

Create a binary search tree with elements , while inserting check for equal
elements and delete it.

But for insertion of n elements in a BST takes O(nlogn)

-- 
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.



[algogeeks] Removing Duplicates In array and Linked list

2011-12-01 Thread kumar raja
1) In there any way to remove duplicates in Integer array in linear time
using constant space??

 i dont want the Hash based solution


2) Is there anyway to remove the duplicates elements from an unsorted
linked list in * Single Pass*???




-- 
Regards
Kumar Raja
M.Tech(SIT)
IIT Kharagpur,
10it60...@iitkgp.ac.in

-- 
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.