All challenges
Multiple ChoiceBeginner 45s

A/B assignment via hashing

An experiment platform assigns users to variants deterministically. Which method gives stable assignment without storing every mapping?
Options
  1. 1Randomly assigning a variant on every single request
  2. 2Sorting all users alphabetically once each new day
  3. 3Hashing a stable user identifier modulo the number of buckets
  4. 4Using the current request timestamp as the seed value

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle