Tower Research CapitalCodingMembers
O(1) Push + Random Pop (Weighted Follow-up)
Members only
Tower Research data-structure design question focused on randomized access: support fast insertion together with random removal under strict complexity limits, then extend it to non-uniform selection. Most of the difficulty is in keeping every operation fast once removal is involved.
RS
data-structure
sampling
hashmap
medium
Frequency
Single report
Last asked
2024-07-07
Stage
tech-screen
Members get
- Full problem statement
- 3 progressive hints
- Step-by-step approach
- Full solution with code
- 4 common pitfalls
- 5 talking points
- 5 follow-up questions with answer directions
- Preparation drills
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
