You are viewing a single comment's thread. Return to all comments →
Solving it in O(1) time complexity is generally not possible, since each day's values (people who liked) depend on the previous day's calculations.
Seems like cookies are disabled on this browser, please enable them to open this website
Viral Advertising
You are viewing a single comment's thread. Return to all comments →
Solving it in O(1) time complexity is generally not possible, since each day's values (people who liked) depend on the previous day's calculations.