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

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 (3)