Design Twitter with tweets, follow and unfollow, and a chronological news feed.
Unlock detailed company stats for this questionUpgrade
Requirements: create tweets, follow and unfollow users, and see the top 10 news feed items of users sorted chronologically by timestamp.
Follow-up: reimplement with a database; schema and indexing must be settled before coding.
Expect follow-ups like
- Now implement it with a database: define the schema and indexing for all methods.
Format · First round, advertised as DSA.
Community answers
No answers contributed by the community yet.
Related questions
Design a simplified Twitter with tweets, feed aggregation and popular tweets.Design Twitter's home page showing global and follower tweets, with entities and fields.Write running code for a Twitter newsfeed with follow, post and custom feed ranking.Related courses

Course

Course
Course
