由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 那位大牛能讲讲这个设计的思路
相关主题
微软onsiteFresh CS PhD, MS 面经
LinkdIn面经面试题目
L面经,请大家帮我看看讨论个subarray sum的变种问题
哪位大牛能给预测一下今年的H1B大概什么时候能用完?面试问题
请问版上有大牛能推荐Splunk吗?多谢Interview question from Yahoo
[请教]有无大牛能说下自己知道的g家不同组的情况?问一题
哪位大牛能总结下烙印多的公司探讨一题
我写的这段,有什么建议吗?问一道java题
相关话题的讨论汇总
话题: window话题: numbers话题: provide话题: circular话题: bunch
进入JobHunting版参与讨论
1 (共1页)
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

1 (共1页)
进入JobHunting版参与讨论
相关主题
问一道java题请问版上有大牛能推荐Splunk吗?多谢
算法面试的疑惑[请教]有无大牛能说下自己知道的g家不同组的情况?
a singly-linked list question哪位大牛能总结下烙印多的公司
如何用JAVA中的circular array of queue 解决Josephus problem? (转载)我写的这段,有什么建议吗?
微软onsiteFresh CS PhD, MS 面经
LinkdIn面经面试题目
L面经,请大家帮我看看讨论个subarray sum的变种问题
哪位大牛能给预测一下今年的H1B大概什么时候能用完?面试问题
相关话题的讨论汇总
话题: window话题: numbers话题: provide话题: circular话题: bunch