Facebook | Phone | Valid Palindrome & Area of Islands

Anonymous User
2930
Nov 27, 2019
Nov 29, 2019

Position: Enterprise Engineer
Location: London | Dublin
Stage: Phone Interview I
YOE: 9

Had a first Phone Interview with Facebook. Solved 2 questions with minor bugs.

  1. exact question https://leetcode.com/problems/valid-palindrome-ii/. Asked time complexity and moved to next problem instantly.
  2. varation of https://leetcode.com/problems/number-of-islands/. Instead return array of areas of islands. Island is connected in 4 directions (up, down, left, right). The same question as in https://leetcode.com/discuss/interview-question/433502/Facebook-or-Phone-or-Number-of-Islands-and-Maximum-vacation-length.
    Interviewer asked about complexity and had followup question if the island is connected in 8 directions.

Interviewer was a nice guy. He directed me towards bugs. I ended the interview on time with no problems. Hope to pass on the next stage of the phone interview 2.
Pass to onsite the next day.

Comments (4)