All challenges
Multiple ChoiceIntermediate 30s

Reservoir Sampling

Reservoir sampling:
Options
  1. 1Randomly samples k items from a stream of unknown size
  2. 2Compresses a stream into far fewer bytes than before
  3. 3Sorts an unknown-size stream before returning it
  4. 4Encrypts a stream with a rolling cipher key scheme

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