We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afdbde1 commit db02874Copy full SHA for db02874
1 file changed
Python/design-twitter.py
@@ -1,8 +1,7 @@
1
-# Time: O(nlogf), n is most recently number of tweets,
2
-# f is the number of user's following.
3
-# Space: O(u + t + r), u is the number of users,
4
-# t is the total number of tweets,
5
-# r is the total number of followings.
+# Time: O(klogu), k is most recently number of tweets,
+# u is the number of the user's following.
+# Space: O(t + f), t is the total number of tweets,
+# f is the total number of followings.
6
7
# Design a simplified version of Twitter where users can post tweets,
8
# follow/unfollow another user and is able to see the 10 most recent
0 commit comments