Facebook | Phone Screen | 3sum + Longest Possible Route in a Matrix with Hurdles

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-03-09Added By Anonymous
Source: Link

Company: Meta
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

1st - 3Sum with squares instead of plain numbers.
2nd - Longest Possible Route in a Matrix with Hurdles (did not find it in leetcode, but in gfg).

I got confused with the 3sum and that unfortunately set my mood for the rest of the interview. I was not able to see that the second question needed backtracking.

Comments