Hewlett Packard Interview Question for Developer Program Engineers
- 0of 0 votes
Given a list of stocks with their respective market capitalizations. The stock’s market cap are updated every minute based on its trading in the market. I have a strategy that wants a list of top 10 highest capped stocks in the market. This query can happen multiple times during the day.- sunny.1rn12cs113 February 22, 2017 in India
Question: What would be the most appropriate data structure that can be used to efficiently implement the list of stocks? Discuss pros/cons of various data structures. Please briefly explain your answer.
| Report Duplicate | Flag | PURGE
Hewlett Packard Developer Program Engineer