Pergunta de entrevista da empresa Baidu

find out the how many different numbers are occurred in an unsorted array