• + 1 comment

    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.