#How to find duplicate elements in an Array?

8 messages · Page 1 of 1 (latest)

mortal lava
#

More so having an issue with how to think about solving this and how to visualize the format.

livid frostBOT
#

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.

young chasm
#

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

mortal lava
#

ty Ill look into this

#

!solved

livid frostBOT
#

Thank you and let us know if you have any more questions!

#

[SOLVED] How to find duplicate elements in an Array?

livid frostBOT
#

@mortal lava

This question thread is being automatically marked as solved.