Remove duplicates from an Array
in
Programming Questions
•
2 years ago
I know this topic is more related to java than processing but i think it might be useful to this community.
How to remove duplicates from an array in a correct manner ?
I've googled a bit and found some interesting threads on stackoverflow but i finally became confuse.
What i mean by correct manner, is just the less memory consuming and fast computation.
Does that need a function that would convert(by checking and adding values) an Array into a Set ?
I'm sure some java gurus have already did that many times.
Regards.
How to remove duplicates from an array in a correct manner ?
I've googled a bit and found some interesting threads on stackoverflow but i finally became confuse.
What i mean by correct manner, is just the less memory consuming and fast computation.
Does that need a function that would convert(by checking and adding values) an Array into a Set ?
I'm sure some java gurus have already did that many times.
Regards.
1