Add Sliding-Window Get and Put Activity Metrics to a Key-Value Store
Company: Databricks
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Onsite
Overview: Extend an in-memory key-value store with `averageGet(window)` and `averagePut(window)` activity metrics for sliding windows of one hour, one day, and one week. Make the API or object boundaries explicit, then cover invariants, edge cases, testing strategy, and operational trade-offs.
Read the full Databricks Software Engineer interview experience this question came from