LLD Round
Questions:
-
Design a simplified version of Twitter where users can post tweets, follow/unfollow another user, and is able to see the 10 most recent tweets in the user's news feed. Aspects to cover:
- APIs (Request/Response)
- DB Schemas
-
Implement the following in any IDE (https://leetcode.com/problems/design-twitter/description/):
- Twitter(): a constructor to initialize the Twitter object.
- postTweet(userId, tweetId): allows a user to post a tweet.
- getNewsFeed(userId): retrieves the 10 most recent tweets from the user and the users they follow.
- follow(followerId, followeeId): allows a user to follow another user.
- unfollow(followerId, followeeId): allows a user to unfollow another user.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.