Facebook/Meta | EC5 | Phone Screen | Jan'22

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-01-18Added By Anonymous
Source: Link

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

Original Post Content:

I had initial phone screen with Meta for E5 position and here are the questions asked:


  • Find average of each Sliding window. Given an input array of n elements and a sliding window fo size k, find the average of each sliding window.input = [1,2,3,4,5]k = 3output = [2.0, 3.0, 4.0](1+2+3)/ 3 = 2.0(2+3+4)/3 = 3.0(3+4+5)/3 = 4.0Expectation was to solve it in O(n) time and O(1) space
  • 339. Nested List Weight Sum

Comments