Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lordnacho
62 days ago
|
parent
|
context
|
favorite
| on:
Reservoir Sampling
I discovered this in one of those coding quizzes they give you to get a job. I was reviewing questions and one of them was this exact thing. I had no idea how to do it until I read the answer, and then it was obvious.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: