Bloomberg Interview Question

was asked to write code in any language to go through array and find duplicate integers.

Interview Answer

Anonymous

Jan 28, 2016

If you need to return the just the duplicate numbers then use hash set. Otherwise use hash map if you need the indexes or frequency.