Numbers arrive one by one; after each, report the average of the last k. Then: what if the window is too big to keep in memory? A Waymo phone-screen question.
Numbers arrive one by one; after each, report the average of the last k. Then: what if the window is too big to keep in memory? A Waymo phone-screen question.
The discussion opens with the full question.