in reply to removing repeated elements from one array
Another possibility, if you want to keep this as an array. Sort the array. Then iterate through it, comparing consecutive elements. If equal, delete one and repeat, until you've reached the last element.
|
|---|