Website Hits Counter

  • 0

    Implement void log_hits() and int get_hits().
    log_hits() - called every time someone visits the website.
    get_hits() - returns number of hits in the last 5 minutes

    Follow up : What if the website gets millions of hits in 5 minutes?

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.