RetailMeNot Interview Question

given an array of strings, return the first one which appears only once in the array

Interview Answers

Anonymous

Dec 4, 2014

use a hashset

Anonymous

Jan 22, 2015

if it's php array_search(1, array_count_values($values));