employer cover photo
employer logo
employer logo

Palantir Technologies

Is this your company?

Palantir Technologies Interview Question

How do you find the intersection of two arrays?

Interview Answer

Anonymous

Jan 6, 2015

Add each element in the first array to a hashset. Iterate through the elements in the second array. If an element is in the hashset, it is in the intersection.