AlgoViz

Design a Multiplayer Game Leaderboard

easy 45 min

Keep 250 million players in order while results arrive all the time, and tell any of them their place in milliseconds.

Where it shows up

The same pattern appears across everyday software.

  • Weekly leagues

    A course app places learners in small groups for a week. Many small boards avoid the one huge board.

  • Race segments

    A running app orders times, so the smallest number wins. The same structure works with the order turned round.

  • Chess ratings

    A rating can go down, so the board stores the latest value, not the best one.

  • Tournament finals

    Ten thousand entrants and a fixed end. An exact, frozen list with prizes needs a stored snapshot.

  • Sales boards

    A few hundred people. One indexed table in a database is the right answer.

  • Live quiz shows

    Everybody answers in the same ten seconds. Scores are collected and the board is published once for each question.