AlgoViz

Design a Top K / Trending Topics System

hard 45 min

Count billions of mentions a day and show the ten topics that are rising right now, in each country and city.

A gate, exact buckets and a score

Read it, run it, change a line and run it again.

Loading editor…

One counter: a sketch decides who gets exact buckets, a ring holds the hour, and the score compares with a baseline.