KV Store with Sliding-Window Average Latency
Implement an in-memory KV store with the following operations:
put(key, value): insert or overwrite a key-value pair and record the operation latency.get(key): return the value for a key (or...
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
