Skip to content

Commit 718b65d

Browse files
authored
Update mini_twitter.py
1 parent a4c5e25 commit 718b65d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mini_twitter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def getNewsFeed(self, user_id):
3636
break
3737
return ret
3838

39-
# medium: http://lintcode.com/zh-cn/problem/mini-twitter/#
4039
# @param {int} user_id
4140
# return {Tweet[]} 10 new posts recently
4241
# and sort by timeline
@@ -71,3 +70,5 @@ def unfollow(self, from_user_id, to_user_id):
7170
if from_user_id in self.follows:
7271
if to_user_id in self.follows[from_user_id]:
7372
self.follows[from_user_id].remove(to_user_id)
73+
74+
# medium: http://lintcode.com/zh-cn/problem/mini-twitter/

0 commit comments

Comments
 (0)