Facebook | E4 | Mar 2020

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-03-16Added By Anonymous
Source: Link

Company: Meta (Facebook)
Role: E4
Interview Stage: Onsite
Location: unknown
Year: 2020

Original Post Content:

My turn to give it back to the community.

Question 0: Similar strings ("face", "eacf") returns true if only 2 positions in the strings are swapped. Here 'f' and 'e' are swapped in the example.
Question 1: Number Of connected components in a Graph.
Question 2 (Behavior interview/ coding): Is there a way to reach (0,0) from a mXn matrix to (m-1,n-1) position and give the path.
Question 3 (System Design): Design a Content publishing site with privacy restrictions.
Question 4: https://leetcode.com/problems/simplify-path/
Question 5: n-ary Tree with each node having a boolean flag. Traverse all the nodes with only boolean flag = True. Return the total distance traveled from root to all those nodes.

Comments