employer cover photo
employer logo
employer logo

Palantir Technologies

Questa è la tua azienda?

Domanda di colloquio di Palantir Technologies

Write a function that removes duplicate numbers in an array

Risposta di colloquio

Anonimo

19 apr 2012

Hash(table,map,set) could help. Add the elements from the array to a hashtable only if the table does not contain the element already. Iterate this through all the elements in the array and get the hashtable values back as an array.