this post was submitted on 17 May 2024
65 points (100.0% liked)

Data Structures and Algorithms

165 readers
1 users here now

A community dedicated to topics related to data structures and algorithms.

founded 7 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] lastunusedusername2 14 points 5 months ago (1 children)

Wow this is surprisingly simple.

[โ€“] [email protected] 4 points 5 months ago

It really is. It'd make a wonderful assignment in a second level programming class.

We use hyperlloglog++ for this because it's mergable across nodes and threads. I haven't thought much about combining this one.