* @param {string} key * @param {string} value * @param {number} timestamp * Time O(1) | Space O(1) * @return {void}
(key, value, timestamp)
| 17 | * @return {void} |
| 18 | */ |
| 19 | set(key, value, timestamp) { |
| 20 | const bucket = this.map[key] || []; |
| 21 | |
| 22 | this.map[key] = bucket; |
| 23 | |
| 24 | bucket.push([value, timestamp]); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * @param {string} key |
no test coverage detected