i agree with dave...Sorting seems to be best method until you know something
more about type and limitations on the data present...If input has any
random numbers then sorting is best if no hashing is permitted...

On Sun, Feb 27, 2011 at 7:15 PM, Dave <[email protected]> wrote:

> If hashing is disallowed, then I think the best method is to sort the
> data and check for consecutive triplicates. O(n log n).
>
> Dave
>
> On Feb 27, 6:35 am, bittu <[email protected]> wrote:
> > @Gaurav Hey I forgot to say Hashing is not allowed sum thing other
> > then this better solution
> >
> > @radha i don't think ur method works here chk out ur methodhttp://
> codepad.org/oTDNSoeu
> >
> > Thanks
> > Shashank
>
> --
> 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