Day 112 of 133

Design news feed / social ranking + DSA review

Social-graph signals; chronological vs algorithmic; diversity vs engagement.

DSA · NeetCode Intervals

  • Merge IntervalsDSA · Intervals

    Interview questions to prep

    1. Why sort by start (not end) for THIS problem — and contrast with non-overlapping-intervals.
    2. How does this scale if intervals stream in unsorted?

ML System Design · News feed / social ranking

  • Interview questions to prep

    1. Walk me through designing Twitter's news feed ranking.
    2. How would you incorporate social-graph signals?
    3. How do you handle the chronological-vs-algorithmic trade-off?
  • Diversity & filter bubblesML System DesignMeta

    Interview questions to prep

    1. How do you measure and improve diversity in a feed without hurting engagement?
    2. What's the trade-off between short-term engagement and long-term retention in feed ranking?

References & further reading