Implement a prototype of a simple cache query handler that manages data entries stored in a cache. Each cache entry has the format: [timestamp, key, value]
The handler receives queries of the form: [key, timestamp]
For each query, you must return the corresponding data value stored in the cache for that exact [key, timestamp] pair.
Note:
You are given:
Return an array of integers representing the data values (converted from string to int) for each query.
Expert in Data Structures & Algorithms. Building tools to help developers crack FAANG interviews.
Amazon • Pending
Hackerrank • Pending
Hackerrank • Pending
Hackerrank • Pending
AMAZON ML SUMMER SCHOOL • Pending