How To Eliminate Duplicates in Arrays
807600Nov 5 2007 — edited Nov 5 2007Hi,
I have a problem about duplicates eliminations in arrays.
For example, I have two integer arrays:
array1: 0, -4, -6, -7, -6, 2
array2: -6, 7, 3, -5, 2, 0, 4, 3, 0
And I want to eliminate duplicates of each array, so the resultant arrays should be:
array1: 0, -4, -6, -7, 2
array2: -6, 7, 3, -5, 2, 0, 4
Sorted or not, doesn't really matter.
Please help :)