Back to problems

Design Hit Counter with Variable Time Windows

Object-Oriented Programming · Databricks · Medium

Build a Hit Counter for Flexible Time Ranges Coding interview, phone screen Software Engineer, Machine Learning Engineer. Reported: June 2026. Frequency: High. Problem Summary Create an in-memory hit counter that reports average traffic rate (QPS, or queries per second) for a requested lookback interval. It should work efficiently for time spans ranging from a few seconds to multiple days. The discussion should prioritize reasoned design choices, clean implementation…

Checking your access…