Implement a Twitter-style feed with follow, unfollow, post, and chronological retrieval.
Constraints
Example
>>> twitter = Twitter() >>> twitter.postTweet(1, 5) >>> twitter.getNewsFeed(1) [5] >>> twitter.follow(1, 2) >>> twitter.postTweet(2, 6) >>> twitter.getNewsFeed(1) [6, 5] >>> twitter.unfollow(1, 2) >>> twitter.getNewsFeed(1) [5]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints