Palantir Frontend Interview
[Palantir - [Frontend Engineer 2] - [Tech Screen]
Description Template:
Level: IC3
Education: MS
Years of Experience: 5
Questions Asked:
- Implement a search (find) function for a long string where there are multiple search terms involved. And you are given a number called lookupIndex, which is the number of words you are okay to have with within the words you are searching.
e.g. -
['this is a very long string. the quick brown fox jumps over the lazy dog ']
search(['this','very'], 2)
Here we want to search if the word this and very exist in the sentence with a maximum of 2 words in between them. And in this case it is true.
['this is a very long string. the quick brown fox jumps over the lazy dog ']
search(['quick','over'], 2)
Here we want to search if the word quick and over exist in the sentence with a maximum of 2 words in between them. And in this case it is false