y*******2 发帖数: 12 | 1 You have bunch of numbers coming in, and given a window size, how would you
save numbers so that you can return number if present in window and provide
average for current window. | s******c 发帖数: 1920 | 2 弄一个Circular buffer就可以
you
provide
【在 y*******2 的大作中提到】 : You have bunch of numbers coming in, and given a window size, how would you : save numbers so that you can return number if present in window and provide : average for current window.
| d******e 发帖数: 2265 | 3 这是算法题。用个open addressing + linar probing就可以来
you
provide
【在 y*******2 的大作中提到】 : You have bunch of numbers coming in, and given a window size, how would you : save numbers so that you can return number if present in window and provide : average for current window.
| y*******2 发帖数: 12 | 4 多谢, 感觉Circular buffer 应该是面试官想要的答案。
【在 s******c 的大作中提到】 : 弄一个Circular buffer就可以 : : you : provide
|
|