Pergunta de entrevista da empresa RetailMeNot

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

Respostas da entrevista

Sigiloso

4 de dez. de 2014

use a hashset

Sigiloso

22 de jan. de 2015

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