Rebalance Experiment Buckets Across Control and Enabled Groups

There are buckets numbered from 0 to B - 1 (B = 1000 in the original setting). The system has one control group and n enabled groups. Each group currently owns a set of distinct buckets, a...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: