TandemSeven interview question

Given an array of numbers, write a function to find the first duplicated number.

Interview Answer

Anonymous

5 Jan 2017

Loop through the array, store each number in a hashtable, find the one existed, and output that number.