Reservoir Sampling | tech::interview
Design an algorithm that reads a sequence of packets and maintains a uniform random subset of size k of the read packets when the n >= k-th packet is read.
Read full article from Reservoir Sampling | tech::interview
No comments:
Post a Comment