Most Traded Stocks Data Structure
Medium programming interview practice: Most Traded Stocks Data Structure.
You need to design a data structure for a stock trading system that supports `execute_trade(ticker, volume)` and `most_traded(k)` returning the top $k$ stocks by total volume. Which data structure combination provides the best average-case performance?