Facebook | Phone | Nested List Weight Sum & K Closest Points to Origin

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-04-28Added By Anonymous
Source: Link

Company: Meta (Facebook)
Role: e5
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

Position: E5

339. Nested List Weight Sum
973. K Closest Points to Origin

For the second one, I used heapq in Python. It seems like interviewer has different opinoin about the O(n) Time Complexity.
Here is the approvement of O(n) to build a heapq Time Complexity of building a heap

Comments