Top N Stocks by Trading Volume
Given a stream of stock trade notifications, each containing a ticker symbol and a volume, track the cumulative volume traded for each stock and efficiently retrieve the top N stocks by total trading volume.
Asked at:
Bloomberg
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late October, 2026
Senior
Given stock trade notifications, each containing a ticker and a volume, track the total volume traded for each stock and efficiently retrieve the top N stocks by total trading volume. Similar to https://leetcode.com/discuss/post/900369/bloomberg-onsite-top-k-stocks-by-anonymo-p7zo/
Hello Interview Premium
Your account is free and you can post anonymously if you choose.