employer cover photo
employer logo
employer logo

Palantir Technologies

Is this your company?

Palantir Technologies interview question

Describe an algorithm for finding a duplicate character in a string.

Interview Answers

Anonymous

6 May 2011

Consider time and space efficiency, and be prepared to describe using Big O notation.

Anonymous

27 May 2015

brute force: check every character against the rest. time efficient: use some sort of map to keep track of seen characters. alt: if the character space is small, then use some type of bit vector.