GOAT EngineerPreparing your learning space…

Practice problems · Category

Analytics & leaderboards problems

Aggregate continuously.

An analytics problem aggregates a stream continuously instead of answering one request at a time. Events arrive faster than any single row can absorb, so they are folded in memory and written in batches, and every crash between a write and a saved position decides whether an event is counted once, twice or never.

The analytics & leaderboards problems

  1. Top K Over a Sliding Window: Practice

    Keep a live top ten of the last 30 seconds without recounting everything. Practise time buckets, stream processing and hot keys, then run it on a goal.

  2. Exactly-Once Counts in a Stream: Practice

    Count every ad click once through crashes, resends and a full database. Practise stream processing, dedupe keys and saving your place with your totals.

By GOAT Engineer. Practice problems · Privacy Policy · Contact.