Microsoft Interview QuestionSDE-2s
- 0of 0 votes
You are given a structure msg
The msg represents price of a stock on a given timestamp.
Create a class with two functions -
addStockPrice(msg m) -> Used to add Stock Price in Data structure
getAvgPriceForAStockLast10Minutes(String stockName) -> Get average price of a stock for last 10 minutes.
The program should be time and space optimized.
Country: United States
Interview Type: In-Person