Facebook | Phone
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-10-28Added By Anonymous
Source: Link
Company: Meta (Facebook)
Role: e3, e4
Interview Stage: Phone Screen
Location: unknown
Year: unknown
Original Post Content:
Given a two dimension array, if there is a path that can from top left to bottom right (1 means obstacle), this one is not hard.(bfs)
Follow up, what if the maze is very big, the size is millions, how to do that? bfs might blow out, is there any other approaches?
Update: Is Bi-directional BFS a good way?