Quora, Inc. Interview Question: You're given a stream of time... | Glassdoor

Interview Question

Software Engineer, Tools and Platform Interview New York, NY

You're given a stream of timestamp and webpage load time

  pairs, with timestamp monotonically increasing. Implement a class which supports calculating average webpage load time across all events in the past X mins.
Answer

Interview Answer

1 Answer

1

basically you store the prefix sum for #events and total load time in two lists

Interview Candidate on Feb 21, 2019

Add Answers or Comments

To comment on this, Sign In or Sign Up.