Hacker News new | ask | show | jobs
by alecco 5214 days ago
For that kind of data you can just use RLE instead. It's the trivial case (an edge case in fact).