这种Design类型的题目怎么练,求指教!Display average for th

原帖地址:mitbbs

我在careercup上看到一道题目是:

Write a class that displays average of stock prices for a given stock symbol
for the last 10 minutes. We have a service that sends stock updates about
5000 times per second. The structure of the message is :

Message {
long timestamp;
String symbol; // E.g. AAPL
double price;
}

像这种类型的题目,大家有没有好的资料,可以集中练习的?
顺便问一下这道题怎么解,多谢各位!