Grad shape
Grad shape

Hit Counter

Get started
hero image
🙏

জয়  শ্রী  রাম

🕉





Problem Statement:


Design a hit counter which counts the number of hits received in the past 5 minutes (i.e., the past 300 seconds).

Your system should accept a timestamp parameter (in seconds granularity).

All the calls are being made to the system in chronological order, i.e., timestamp is monotonically increasing. Several hits may arrive roughly at the same time.

Implement the Hit Counter.

Solution in Java and Python:



Login to Access Content



Instructor: