We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ed3e47 commit e2900a0Copy full SHA for e2900a0
searches/reservoir_sampling.py
@@ -14,6 +14,7 @@
14
15
import random
16
17
+
18
def reservoir_sampling(stream, k):
19
"""
20
Performs reservoir sampling on a stream of items.
0 commit comments