Also reported as Weighted Sampling Batcher
Anthropic MLE / research question, reconstructed from 2 candidate reports (October 2025 to April 2026). Tests: iterators and generators. Candidates reported 2 follow-ups. The write-up includes a Python solution that passes 12 test cases.