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 db02874 commit efe8d1aCopy full SHA for efe8d1a
1 file changed
C++/design-twitter.cpp
@@ -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
class Twitter {
8
public:
0 commit comments