Another method: 1. create a Set 2. for each element in the array: put the element to the set. 3. the set will be what we want. (because it guarantee that there will be no two same element in the set),
There are a lot of ways to implement a set. e.g. hash or tree. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---