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

2011-12-04 Thread WgpShashank
@kumar ,dave .. there is ony one way to do it if numbers are in range , 
otherwise its not possible yo remove the duplicates from both array & 
linkedlist which are unsorted ?

what's u say ?


Thanks
Shashank
Computer Science,
BIT Mesra

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/ciA00fkb7JwJ.
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] Re: Removing Duplicates In array and Linked list

2011-12-02 Thread Dave
@Kumar: What makes you think that there is an O(n) time, O(1) space
algorithm?

Dave

On Dec 2, 6:26 am, kumar raja  wrote:
> @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.



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

2011-12-01 Thread kumar raja
Please help me in solving above quesitons 

On 1 December 2011 08:33, kumar raja  wrote:

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


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