Reservoir sampling
Published:
First read the problem description.
For the first problem we’ll use algorithm R, while for the second algorithm A-ES.
Golang Weekly
Checkout Go Weekly for the latest articles, tutorials and projects about Go.
Source code of the solution(s):