Problem Statement

Let's look at a problem statement that asks you to design a Twitter feed system.

Problem statement

The interviewer has asked you to design a Twitter feed system that will show the most relevant tweets for a user based on their social graph.

Press + to interact
How to display the most relevant content for user A's Twitter feed?
How to display the most relevant content for user A's Twitter feed?

First, let’s develop an understanding of the problem.

Visualizing the problem

User A is connected to other people/businesses on the Twitter platform. They are interested in knowing the activity of their connections through their feed. ...