Approach hintTry it first, then revealHide
Store each user's followees in a set and every tweet with a global timestamp. To build a feed, merge the tweet lists of the user and the followees with a heap and stop after the 10 most recent.
Store each user's followees in a set and every tweet with a global timestamp. To build a feed, merge the tweet lists of the user and the followees with a heap and stop after the 10 most recent.