Hudson River TradingSoftware Engineer · Technical ScreenDesign Insert/Delete/GetRandom with Weighted Sampling
Design a data structure that supports insert, delete, and getRandom operations, with the added requirement that getRandom should return elements based on their weights.
Medium
Software Engineering Fundamentals