Got two questions in 35 minutes
- https://leetcode.com/problems/moving-average-from-data-stream/
- https://leetcode.com/problems/k-closest-points-to-origin/
Stating time and space complexity and dry running code through test cases is very important for Facebook.
Solved both optimally in 35 mins, got the result in 2 days that I am passed to onsite.
Comments (5)


