LinkedIn Phone screen and Onsite | Senior Software Engineer

Anonymous User
1560
Apr 16, 2024

Phone Interview:

  1. Search number in rotated array. -> 1st question
  2. Find the diameter of a binary tree -> 2nd question

Onsite interview

  • Design a data structure that supports adding new words and finding if a string matches any previously added string.

Implement the WordDictionary class:

WordDictionary() Initializes the object.
void addWord(word) Adds word to the data structure, it can be matched later.
bool search(word) Returns true if there is any string in the data structure that matches word or false otherwise. word may contain dots '.' where dots can be matched with any letter.

3. Design typeahead search in linkedin. If you type a prefix in search box, it should populate the people with that prefix in your connections, connections of connections, and companies.

Comments (4)