#How to find duplicate elements in an Array?
8 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
if you're memory constrained, sort then iterate through for O(nlogn), if you're time constrained, go through and put items in an unordered map, and can just check if it already exists everytime you try to insert
Thank you and let us know if you have any more questions!
[SOLVED] How to find duplicate elements in an Array?
@mortal lava
This question thread is being automatically marked as solved.