Problem 528 · Medium
Implement weighted random index selection using prefix sum and binary search.
Open the interactive visualisation