Question bank

No. 22 · Search & ranking

Design top charts for an app store

Intermediate35 minRanking · Batch processing · Counting & aggregation · Data modeling · Caching

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Walkthrough reading

At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.

  1. YouTube Top K

    Hello InterviewArticleFull walkthroughFreeVetted

    Full walkthrough of top K over fixed windows: precompute per window, absorb heavy writes, sliding windows, and when approximate counting pays off. Directly applicable to bestseller lists.

    Link checked 2026-12-06

  2. Google India Engineers in a Mock System Design Interview

    Life at Google (YouTube)VideoMock interviewFreeVetted

    Google engineers mock a top songs and albums by country and period question, then give feedback. Good model of clarifying dimensions (by user, region, time) before designing.

    Link checked 2026-12-06

  3. System Design: Top K Songs on Spotify (3+ Approaches)

    System Design Fight Club (YouTube)VideoFull walkthroughFreeVetted

    Long livestream that builds three approaches in order: batch jobs off a replica, CDC, then a Kafka-based streaming path, with estimates. Rambling in places; skip the setup at the start.

    Link checked 2026-12-06

  4. System Design Interview: Top K Problem (Heavy Hitters)

    serhatgiydiren.com · Serhat GiydirenArticleBackgroundFreeVetted

    Readable overview of exact versus approximate top K: heap, count-min sketch, lossy counting, Misra-Gries, plus sharding and merging partial results. Generic; no single end to end design.

    Link checked 2026-12-06

  5. An Improved Data Stream Summary: The Count-Min Sketch and its Applications

    Journal of Algorithms (author copy) · Graham Cormode, S. MuthukrishnanPaperPaperFreeVetted

    Primary source for the count-min sketch and its error guarantees. Skim for the intuition and the heavy-hitter section; the bounds are what make approximate rankings defensible.

    Link checked 2026-12-06

  6. Efficient Computation of Frequent and Top-k Elements in Data Streams (Space-Saving)

    UCSB technical report 2005-23 · Metwally, Agrawal, El AbbadiPaperPaperFreeVetted

    Space-Saving keeps only K-ish counters and still finds the top items, which is often the better tool for a leaderboard than count-min plus heap. Academic; the algorithm fits on a page.

    Link checked 2026-12-06

Report a bad or misleading link

Reference audit: 2 of 4 links from the audited catalog kept
  • youtube.com/watch?v=1lfktgZ9Eeo Private video; no longer viewable.
  • teamblind.com/post/Please-critique-my-system-design-for-Top-K-most-sea A rough sketch asking for critique; no company or interview context and not reliable as a solution.

We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.

COMPANY EVIDENCE · NOT A FREQUENCY CLAIM

Where it has been reported

Catalog tags (unverified)

AmazonBloombergMeta (Facebook)Pinterest

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

From our Learn guides

Related questions