Message 1 of 8
Not applicable
06-29-2012
06:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a list that has duplicate items. I'd like to get a count of how many duplicates there are of each item in the list, then remove any duplicates.
For example list = {"a","b","b","a","c","a"} would give me something like {{"a",3}, {"b",2}, {"c",1}}
I've already done this using a double loop, but it's terribly inefficient. Is there some simple way to do this using prebuilt functions from ETO?
My list will have upwards of 1000 items, which is why efficiency matters so much. A double loop would mean a million comparisons. (1000 items each compared 1000 times)
Solved! Go to Solution.
Reply
Reply