Deterministic A/B Variant Assignment with Hash Bucketing
Role: Data Scientist
Category: Analytics & Experimentation
Difficulty: easy
Interview Round: Other
Overview: Implement a function that assigns users to control or treatment in a 50/50 A/B test by hashing a salted user id into 100 buckets. It tests reproducible assignment without randomness, getting the bucket boundary right, and what the salt does across experiments.