Domanda di colloquio di RetailMeNot

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

Risposte di colloquio

Anonimo

4 dic 2014

use a hashset

Anonimo

22 gen 2015

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