Skip to content

rasaviharhouse/Twitter_Design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter_Design

A simplified version of Twitter using C++ 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.

Twitter class:

Twitter(): Initializes the twitter object.

void postTweet(int userId, int tweetId): Composes a new tweet with ID tweetId by the user userId. Each call to this function will be made with a unique tweetId.

List getNewsFeed(int userId): Retrieves the 10 most recent tweet IDs in the user's news feed. Each item in the news feed must be posted by users who the user followed or by the user themself. Tweets will be ordered from most recent to least recent.

void follow(int followerId, int followeeId): The user with ID followerId started following the user with ID followeeId.

void unfollow(int followerId, int followeeId): The user with ID followerId started unfollowing the user with ID followeeId.

About

A simplified version of Twitter using C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published